#6231 Fix wrong json path to check DB lock status while switching over dr clusters.

This commit is contained in:
leonliao 2022-01-11 12:18:25 +08:00 committed by Jingyu Zhou
parent ef711d405c
commit bc2c3df61f
1 changed files with 1 additions and 1 deletions

View File

@ -2366,7 +2366,7 @@ std::string getDRMutationStreamId(StatusObjectReader statusObj, const char* cont
bool getLockedStatus(StatusObjectReader statusObj) {
try {
StatusObjectReader statusObjCluster = statusObj["cluster"].get_obj();
return statusObjCluster["database_locked"].get_bool();
return statusObjCluster["database_lock_state.locked"].get_bool();
} catch (std::runtime_error& e) {
TraceEvent(SevWarn, "DBA_GetLockedStatusFail").detail("Error", e.what());
throw backup_error();