VersionSet::Builder::Apply() does not mutate its argument.

PiperOrigin-RevId: 420533763
This commit is contained in:
Victor Costan 2022-01-09 03:04:29 +00:00 committed by Victor Costan
parent 42cf899927
commit 7ee3889a61

View File

@ -626,7 +626,7 @@ class VersionSet::Builder {
}
// Apply all of the edits in *edit to the current state.
void Apply(VersionEdit* edit) {
void Apply(const VersionEdit* edit) {
// Update compaction pointers
for (size_t i = 0; i < edit->compact_pointers_.size(); i++) {
const int level = edit->compact_pointers_[i].first;