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

Method get_database_size

src/utilities/nbackup/nbackup.cpp:1100–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100void NBackup::get_database_size()
1101{
1102 db_size_pages = 0;
1103 const char fs[] = {isc_info_db_file_size};
1104 char res[128];
1105 if (isc_database_info(status, &newdb, sizeof(fs), fs, sizeof(res), res))
1106 {
1107 pr_error(status, "size info");
1108 }
1109 else if (res[0] == isc_info_db_file_size)
1110 {
1111 USHORT len = isc_vax_integer (&res[1], 2);
1112 db_size_pages = isc_vax_integer (&res[3], len);
1113 }
1114}
1115
1116void NBackup::get_ods()
1117{

Callers

nothing calls this directly

Calls 1

pr_errorFunction · 0.85

Tested by

no test coverage detected