-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: only create one CreatedBackingTables entry per sstable
Problem explained in detail in: #2947 (comment) We were adding too many CreatedBackingTables entries to the manifest. Such an entry should only be added when an sstable is first virtualized. This is mentioned as an invariant above VersionEdit.CreatedBackingTables. Note that the excise function will create backing tables and add them to the version edit. But these backing tables should only be added to the version edit, if the sstable being virtualized is NOT virtual. If we're further virtualizing an already virtual sstable, then a backing table entry associated with the file backing will already be present in the manifest as part of an older version edit.
- Loading branch information
1 parent
b2da10c
commit 699fc0e
Showing
3 changed files
with
182 additions
and
8 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