Merge pull request #2047 from tclinken/lock-aware-db-ping
Use lock aware transaction for pingDatabase
This commit is contained in:
commit
58b984b846
|
@ -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