]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Initialize options.row_cache
authorsdong <siying.d@fb.com>
Mon, 30 Nov 2015 18:30:22 +0000 (10:30 -0800)
committersdong <siying.d@fb.com>
Mon, 30 Nov 2015 18:30:35 +0000 (10:30 -0800)
Summary: options.row_cache should already been initialized as null by default. Still try to set it following current convention, because one valgrind failure reports a failure related to it.

Test Plan: Run all unit tests

Reviewers: yhchiang, kradhakrishnan, igor

Reviewed By: igor

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D51303

util/options.cc

index 3a90cd8609e07ce259e0c03f3f9fe06a16c4eb34..20bfebbf167a6f11027bef742550dc296c0f71ab 100644 (file)
@@ -260,6 +260,7 @@ DBOptions::DBOptions()
       delayed_write_rate(1024U * 1024U),
       skip_stats_update_on_db_open(false),
       wal_recovery_mode(WALRecoveryMode::kTolerateCorruptedTailRecords),
+      row_cache(nullptr),
 #ifndef ROCKSDB_LITE
       wal_filter(nullptr),
 #endif  // ROCKSDB_LITE