]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: add --mon-leveldb-paranoid flag
authorSage Weil <sage@inktank.com>
Wed, 1 May 2013 21:38:59 +0000 (14:38 -0700)
committerSage Weil <sage@inktank.com>
Wed, 1 May 2013 21:40:47 +0000 (14:40 -0700)
This is sort of equivalent to an fsck.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/mon/MonitorDBStore.h

index 9f7dafeb2189b60077b233abfe9ef8ea9b551a98..868124b14e43f552c562562cad41bd0a185f94d0 100644 (file)
@@ -189,6 +189,7 @@ OPTION(mon_leveldb_block_size, OPT_U64, 64*1024) // monitor's leveldb block size
 OPTION(mon_leveldb_bloom_size, OPT_INT, 0) // monitor's leveldb bloom bits per entry
 OPTION(mon_leveldb_max_open_files, OPT_INT, 0) // monitor's leveldb max open files
 OPTION(mon_leveldb_compression, OPT_BOOL, false) // monitor's leveldb uses compression
+OPTION(mon_leveldb_paranoid, OPT_BOOL, false)   // monitor's leveldb paranoid flag
 OPTION(paxos_stash_full_interval, OPT_INT, 25)   // how often (in commits) to stash a full copy of the PaxosService state
 OPTION(paxos_max_join_drift, OPT_INT, 10) // max paxos iterations before we must first sync the monitor stores
 OPTION(paxos_propose_interval, OPT_DOUBLE, 1.0)  // gather updates for this long before proposing a map update
index c4c681043b1ab86ab467c1877c84c9157280e679..9dc255c7ba7eaf6e9a6ad6f9cdd06c88f4d46c78 100644 (file)
@@ -510,6 +510,7 @@ class MonitorDBStore
     db->options.bloom_size = g_conf->mon_leveldb_bloom_size;
     db->options.compression_enabled = g_conf->mon_leveldb_compression;
     db->options.max_open_files = g_conf->mon_leveldb_max_open_files;
+    db->options.paranoid_checks = g_conf->mon_leveldb_paranoid;
   }
   MonitorDBStore(LevelDBStore *db_ptr) {
     db.reset(db_ptr);