MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / check_backup_state

Function check_backup_state

src/jrd/shut.cpp:454–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452
453
454static void check_backup_state(thread_db* tdbb)
455{
456 Database* const dbb = tdbb->getDatabase();
457
458 BackupManager::StateReadGuard stateGuard(tdbb);
459
460 if (dbb->dbb_backup_manager->getState() != Ods::hdr_nbak_normal)
461 {
462 ERR_post(Arg::Gds(isc_bad_shutdown_mode) << Arg::Str(dbb->dbb_filename));
463 }
464}
465
466
467static bool notify_shutdown(thread_db* tdbb, SSHORT flag, SSHORT delay, Sync* guard)

Callers 2

SHUT_databaseFunction · 0.85
SHUT_onlineFunction · 0.85

Calls 5

GdsClass · 0.85
StrClass · 0.85
getDatabaseMethod · 0.80
ERR_postFunction · 0.70
getStateMethod · 0.45

Tested by

no test coverage detected