浏览代码

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

PiperOrigin-RevId: 420533763
naive_version
Victor Costan 2 年前
committed by Victor Costan
父节点
当前提交
7ee3889a61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      db/version_set.cc

+ 1
- 1
db/version_set.cc 查看文件

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

正在加载...
取消
保存