Use lock aware transaction for pingDatabase

This commit is contained in:
Trevor Clinkenbeard 2019-08-29 16:34:49 -07:00 committed by tclinken
parent 619b61bb85
commit 2f92cf8c96
1 changed files with 1 additions and 0 deletions

View File

@ -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() );