From c37b48308ea6f6e70187659d88a48f86912369c5 Mon Sep 17 00:00:00 2001 From: Yichi Chiang Date: Thu, 3 May 2018 11:11:44 -0700 Subject: [PATCH] Fix the way to get tagName --- fdbclient/FileBackupAgent.actor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdbclient/FileBackupAgent.actor.cpp b/fdbclient/FileBackupAgent.actor.cpp index ae383234df..9ead53deae 100644 --- a/fdbclient/FileBackupAgent.actor.cpp +++ b/fdbclient/FileBackupAgent.actor.cpp @@ -834,7 +834,8 @@ namespace fileBackup { static StringRef name; ACTOR static Future _finish(Reference tr, Reference taskBucket, Reference futureBucket, Reference task) { state FileBackupAgent backupAgent; - state std::string tagName = task->params[BackupAgentBase::keyConfigBackupTag].toString(); + state BackupConfig config(task); + state std::string tagName = wait(config.tag().getOrThrow(tr)); TEST(true); // Canceling 5.1 backup task