fix: tag needs to be assigned directly before using it

This commit is contained in:
Evan Tschannen 2017-10-30 16:23:26 -07:00
parent 98b4270703
commit 196aac4cec
1 changed files with 1 additions and 1 deletions

View File

@ -3503,8 +3503,8 @@ public:
statusText = "";
tag = makeBackupTag(tagName);
state Future<Optional<Value>> fDisabled = tr->get(backupAgent->taskBucket->getDisableKey());
state Optional<UidAndAbortedFlagT> uidAndAbortedFlag = wait(tag.get(tr));
state Future<Optional<Value>> fDisabled = tr->get(backupAgent->taskBucket->getDisableKey());
if (uidAndAbortedFlag.present()) {
config = BackupConfig(uidAndAbortedFlag.get().first);
EBackupState status = wait(config.stateEnum().getD(tr, EBackupState::STATE_NEVERRAN));