diff options
author | Victor Costan <costan@google.com> | 2022-01-09 03:04:29 +0000 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2022-01-09 03:15:31 +0000 |
commit | 7ee3889a6137075560e64a7ad4289c10d4cdafc9 (patch) | |
tree | 6eaeea0d3c34ea5bfe1e79de1b519807c5932c34 | |
parent | 42cf89992724487f8bf08f17804de38921f973c6 (diff) | |
download | leveldb-7ee3889a6137075560e64a7ad4289c10d4cdafc9.tar.gz |
VersionSet::Builder::Apply() does not mutate its argument.
PiperOrigin-RevId: 420533763
-rw-r--r-- | db/version_set.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/version_set.cc b/db/version_set.cc index 8d85fce..597e226 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -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; |