Change default timeout
This commit is contained in:
parent
7993a6210b
commit
24493eb4ff
@ -161,7 +161,10 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
|
||||
this.db = OptimisticTransactionDB.open(new DBOptions(rocksdbOptions), dbPathString, descriptors, handles);
|
||||
} else {
|
||||
this.db = TransactionDB.open(new DBOptions(rocksdbOptions),
|
||||
new TransactionDBOptions().setWritePolicy(TxnDBWritePolicy.WRITE_COMMITTED),
|
||||
new TransactionDBOptions()
|
||||
.setWritePolicy(TxnDBWritePolicy.WRITE_COMMITTED)
|
||||
.setTransactionLockTimeout(5000)
|
||||
.setDefaultLockTimeout(5000),
|
||||
dbPathString,
|
||||
descriptors,
|
||||
handles
|
||||
|
Loading…
Reference in New Issue
Block a user