Просмотр исходного кода

leveldb: Make WriteBatch::ApproximateSize() const.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=229395810
main
costan 5 лет назад
committed by Victor Costan
Родитель
Сommit
fe4494804f
2 измененных файлов: 2 добавлений и 2 удалений
  1. +1
    -1
      db/write_batch.cc
  2. +1
    -1
      include/leveldb/write_batch.h

+ 1
- 1
db/write_batch.cc Просмотреть файл

@ -39,7 +39,7 @@ void WriteBatch::Clear() {
rep_.resize(kHeader); rep_.resize(kHeader);
} }
size_t WriteBatch::ApproximateSize() {
size_t WriteBatch::ApproximateSize() const {
return rep_.size(); return rep_.size();
} }

+ 1
- 1
include/leveldb/write_batch.h Просмотреть файл

@ -52,7 +52,7 @@ class LEVELDB_EXPORT WriteBatch {
// //
// This number is tied to implementation details, and may change across // This number is tied to implementation details, and may change across
// releases. It is intended for LevelDB usage metrics. // releases. It is intended for LevelDB usage metrics.
size_t ApproximateSize();
size_t ApproximateSize() const;
// Copies the operations in "source" to this batch. // Copies the operations in "source" to this batch.
// //

Загрузка…
Отмена
Сохранить