Use lock aware transaction for pingDatabase
This commit is contained in:
parent
619b61bb85
commit
2f92cf8c96
|
@ -360,6 +360,7 @@ ACTOR Future<Void> pingDatabase( Database cx ) {
|
|||
loop {
|
||||
try {
|
||||
tr.setOption( FDBTransactionOptions::PRIORITY_SYSTEM_IMMEDIATE );
|
||||
tr.setOption( FDBTransactionOptions::LOCK_AWARE );
|
||||
Optional<Value> v = wait( tr.get( StringRef("/Liveness/" + deterministicRandom()->randomUniqueID().toString() ) ) );
|
||||
tr.makeSelfConflicting();
|
||||
wait( tr.commit() );
|
||||
|
|
Loading…
Reference in New Issue