8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 14:03:07 +01:00

Fixed mistake in the last commit.

This commit is contained in:
dimitr 2007-09-14 15:59:05 +00:00
parent 5ec938da7c
commit 11b49c231f

View File

@ -978,9 +978,6 @@ void DatabaseSnapshot::putDatabase(const Database* database,
sizeof(ISC_TIMESTAMP));
// database size
writer.insertBigInt(f_mon_db_pages, PageSpace::actAlloc(database));
// statistics
writer.insertBigInt(f_mon_db_stat_id, getGlobalId(stat_id));
putStatistics(&database->dbb_stats, writer, stat_id);
// database state
thread_db* tdbb = JRD_get_thread_data();
database->dbb_backup_manager->lock_shared_database(tdbb, true);
@ -1000,6 +997,9 @@ void DatabaseSnapshot::putDatabase(const Database* database,
}
database->dbb_backup_manager->unlock_shared_database(tdbb);
writer.insertInt(f_mon_db_backup_state, temp);
// statistics
writer.insertBigInt(f_mon_db_stat_id, getGlobalId(stat_id));
putStatistics(&database->dbb_stats, writer, stat_id);
}