Browse Source

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

PiperOrigin-RevId: 420533763
xry
Victor Costan 2 years ago
committed by Victor Costan
parent
commit
7ee3889a61
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      db/version_set.cc

+ 1
- 1
db/version_set.cc 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;

Loading…
Cancel
Save