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

Method detach_database

src/utilities/nbackup/nbackup.cpp:1043–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1041}
1042
1043void NBackup::detach_database()
1044{
1045 if (m_silent)
1046 {
1047 ISC_STATUS_ARRAY temp;
1048 if (trans)
1049 isc_rollback_transaction(temp, &trans);
1050
1051 isc_detach_database(temp, &newdb);
1052 }
1053 else
1054 {
1055 if (trans)
1056 {
1057 if (isc_rollback_transaction(status, &trans))
1058 pr_error(status, "rollback transaction");
1059 }
1060 if (isc_detach_database(status, &newdb))
1061 pr_error(status, "detach database");
1062 }
1063}
1064
1065void NBackup::internal_lock_database()
1066{

Callers

nothing calls this directly

Calls 1

pr_errorFunction · 0.85

Tested by

no test coverage detected