From 196c68703a3346efdfab9830e6a1a69f59275f01 Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Thu, 31 Jan 2019 13:42:22 -0800 Subject: [PATCH] Fix `WriteBatchBase::DeleteRange` API comment The `DeleteRange` end key is exclusive, not inclusive. Updated API comment accordingly. --- include/rocksdb/write_batch_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rocksdb/write_batch_base.h b/include/rocksdb/write_batch_base.h index f91332ee2..a7747a7c8 100644 --- a/include/rocksdb/write_batch_base.h +++ b/include/rocksdb/write_batch_base.h @@ -69,7 +69,7 @@ class WriteBatchBase { const SliceParts& key); virtual Status SingleDelete(const SliceParts& key); - // If the database contains mappings in the range ["begin_key", "end_key"], + // If the database contains mappings in the range ["begin_key", "end_key"), // erase them. Else do nothing. virtual Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, const Slice& end_key) = 0;