Skip to content

Commit

Permalink
Enable RocksDB force_consistency_checks = true (sofastack#388)
Browse files Browse the repository at this point in the history
* rocksdb force consistency checks

* rocksdb force consistency checks
  • Loading branch information
SteNicholas authored and fengjiachun committed Jan 2, 2020
1 parent 6b7ee52 commit 34925e4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ public static ColumnFamilyOptions getDefaultRocksDBColumnFamilyOptions() {
.optimizeLevelStyleCompaction();
}

// https://github.com/facebook/rocksdb/pull/5744
opts.setForceConsistencyChecks(true);

return opts;
}

Expand Down

0 comments on commit 34925e4

Please sign in to comment.