MCPcopy Create free account
hub / github.com/apple/foundationdb / getLockedStatus

Function getLockedStatus

fdbclient/DatabaseBackupAgent.actor.cpp:2367–2375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2365}
2366
2367bool 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
2377void checkAtomicSwitchOverConfig(StatusObjectReader srcStatus, StatusObjectReader destStatus, Key tagName) {
2378

Callers 1

Calls 4

TraceEventClass · 0.85
detailMethod · 0.80
get_boolMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected