| 2365 | } |
| 2366 | |
| 2367 | bool getLockedStatus(StatusObjectReader statusObj) { |
| 2368 | try { |
| 2369 | StatusObjectReader statusObjCluster = statusObj["cluster"].get_obj(); |
| 2370 | return statusObjCluster["database_lock_state.locked"].get_bool(); |
| 2371 | } catch (std::runtime_error& e) { |
| 2372 | TraceEvent(SevWarn, "DBA_GetLockedStatusFail").detail("Error", e.what()); |
| 2373 | throw backup_error(); |
| 2374 | } |
| 2375 | } |
| 2376 | |
| 2377 | void checkAtomicSwitchOverConfig(StatusObjectReader srcStatus, StatusObjectReader destStatus, Key tagName) { |
| 2378 |
no test coverage detected