Update wal.md

Signed-off-by: DC <413331538@qq.com>
This commit is contained in:
DC 2024-09-19 13:18:23 +08:00 committed by GitHub
parent b6107cc888
commit eb601ca6d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,8 @@ Notable deviations are that the record fragment is encoded as:
└───────────┴──────────┴────────────┴──────────────┘
```
The type flag has the following states:
The type flag is comprised of three components: a 3-bit reserved field, a 1-bit zstd compression flag, a 1-bit snappy compression flag, and a 3-bit type flag.
The lowest 3 bits within this flag represent the record type as follows:
* `0`: rest of page will be empty
* `1`: a full record encoded in a single fragment