HDFS-12864. Ozone: Turn off full synced write in RocksDB MetadataStore. Contributed by Elek, Marton.
This commit is contained in:
parent
8023ba50b5
commit
e32e187448
|
@ -67,8 +67,6 @@ public class RocksDBStore implements MetadataStore {
|
||||||
dbOptions = options;
|
dbOptions = options;
|
||||||
dbLocation = dbFile;
|
dbLocation = dbFile;
|
||||||
writeOptions = new WriteOptions();
|
writeOptions = new WriteOptions();
|
||||||
writeOptions.setSync(true);
|
|
||||||
writeOptions.setNoSlowdown(true);
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
db = RocksDB.open(dbOptions, dbLocation.getAbsolutePath());
|
db = RocksDB.open(dbOptions, dbLocation.getAbsolutePath());
|
||||||
|
|
Loading…
Reference in New Issue