-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manifest: support ve encoding/decoding for virtual sstables
We introduce three new tags for virtual sstable encoding/decoding. tagCreatedBackingTable, tagRemovedBackingTable are used to encode VersionEdit.CreatedBackingTables and VersionEdit.RemovedBackingTables. For CreatedBackingTables, we just need to encode the DiskFileNum and the Size, and for RemovedBackingTable, we just need to encode the DiskFileNum. We introduce a customTag customTagVirtual, to encode whether the FileMetadata belongs to a virtual sstable. We only use this tag for virtual sstables. If this tag is absent, then the FileMetadata belongs to a physical sstable. This tag is also used to encode FileMetadata.FileBacking.DiskFileNum for virtual sstables. Note that the Decode function doesn't have the information necessary to populate the FileBacking for a virtual sstable. We populate this information in BulkVersionEdit.Accumulate. This is similar to the FileMetadata of a deleted file getting populated in BulkVersionEdit.Accumulate.
- Loading branch information
1 parent
1880f18
commit ad14b30
Showing
6 changed files
with
401 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.