diff options
author | costan <costan@google.com> | 2019-01-15 10:29:55 -0800 |
---|---|---|
committer | Victor Costan <costan@google.com> | 2019-01-15 18:43:13 +0000 |
commit | fe4494804f5e3a2e25485d32aeb0eb7d2f25732e (patch) | |
tree | ad31aa32872df0eba437c5cf84237017950345c3 /db | |
parent | 296de8d5b8e4e57bd1e46c981114dfbe58a8c4fa (diff) | |
download | leveldb-fe4494804f5e3a2e25485d32aeb0eb7d2f25732e.tar.gz |
leveldb: Make WriteBatch::ApproximateSize() const.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=229395810
Diffstat (limited to 'db')
-rw-r--r-- | db/write_batch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/write_batch.cc b/db/write_batch.cc index 40eed2e..23eb00f 100644 --- a/db/write_batch.cc +++ b/db/write_batch.cc @@ -39,7 +39,7 @@ void WriteBatch::Clear() { rep_.resize(kHeader); } -size_t WriteBatch::ApproximateSize() { +size_t WriteBatch::ApproximateSize() const { return rep_.size(); } |