瀏覽代碼

Fix build errors.

PiperOrigin-RevId: 351442409
naive_version
Victor Costan 3 年之前
父節點
當前提交
1998c0ef15
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      benchmarks/db_bench.cc

+ 2
- 2
benchmarks/db_bench.cc 查看文件

@ -130,7 +130,7 @@ class CountComparator : public Comparator {
public:
CountComparator(const Comparator* wrapped) : wrapped_(wrapped) {}
~CountComparator() override {}
int Compare(const Slice& a, const Slice& b) const {
int Compare(const Slice& a, const Slice& b) const override {
count_.fetch_add(1, std::memory_order_relaxed);
return wrapped_->Compare(a, b);
}
@ -149,7 +149,7 @@ class CountComparator : public Comparator {
void reset() { count_.store(0, std::memory_order_relaxed); }
private:
mutable std::atomic<size_t> count_ = 0;
mutable std::atomic<size_t> count_{0};
const Comparator* const wrapped_;
};

Loading…
取消
儲存