summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorcostan <costan@google.com>2019-03-19 14:34:51 -0700
committerVictor Costan <pwnall@chromium.org>2019-03-20 13:56:22 -0700
commit201f77d137f30ea46e789a2ad60e9119b6f990fc (patch)
treec408de48a7a9aed8a7d4dbe5823267081fd8857d /db
parent9ce30510d482f5b2fa2965201453f0fc914f700c (diff)
downloadleveldb-201f77d137f30ea46e789a2ad60e9119b6f990fc.tar.gz
Inline defaults in options.
This CL moves default values for leveldb::{Options,ReadOptions,WriteOptions} from constructors to member declarations, and removes now-redundant comments stating the defaults. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=239271242
Diffstat (limited to 'db')
-rw-r--r--db/fault_injection_test.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/db/fault_injection_test.cc b/db/fault_injection_test.cc
index b3429ac..1f72984 100644
--- a/db/fault_injection_test.cc
+++ b/db/fault_injection_test.cc
@@ -469,7 +469,6 @@ class FaultInjectionTest {
void DeleteAllData() {
Iterator* iter = db_->NewIterator(ReadOptions());
- WriteOptions options;
for (iter->SeekToFirst(); iter->Valid(); iter->Next()) {
ASSERT_OK(db_->Delete(WriteOptions(), iter->key()));
}