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

Method lock_database

src/utilities/nbackup/nbackup.cpp:1156–1176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156void NBackup::lock_database(bool get_size)
1157{
1158 attach_database();
1159 db_size_pages = 0;
1160 try {
1161 internal_lock_database();
1162 if (get_size)
1163 {
1164 get_database_size();
1165 if (db_size_pages && (!uSvc->isService()))
1166 printf("%d\n", db_size_pages);
1167 }
1168 }
1169 catch (const Exception&)
1170 {
1171 m_silent = true;
1172 detach_database();
1173 throw;
1174 }
1175 detach_database();
1176}
1177
1178void NBackup::unlock_database()
1179{

Callers 1

nbackupFunction · 0.80

Calls 2

attach_databaseFunction · 0.85
isServiceMethod · 0.45

Tested by

no test coverage detected