diff --git a/fdbclient/DatabaseBackupAgent.actor.cpp b/fdbclient/DatabaseBackupAgent.actor.cpp index 324b7000a0..a20bd4ea52 100644 --- a/fdbclient/DatabaseBackupAgent.actor.cpp +++ b/fdbclient/DatabaseBackupAgent.actor.cpp @@ -1633,11 +1633,12 @@ public: statusText = ""; - state Future> fDisabled = tr->get(backupAgent->taskBucket->getDisableKey()); state UID logUid = wait(backupAgent->getLogUid(tr, tagName)); tr->setOption(FDBTransactionOptions::ACCESS_SYSTEM_KEYS); tr->setOption(FDBTransactionOptions::LOCK_AWARE); + + state Future> fDisabled = tr->get(backupAgent->taskBucket->getDisableKey()); int backupStateInt = wait(backupAgent->getStateValue(tr, logUid)); state BackupAgentBase::enumState backupState = (BackupAgentBase::enumState)backupStateInt;