8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00

Fixed the issue spotted by Martijn.

This commit is contained in:
dimitr 2006-11-21 13:56:39 +00:00
parent ea509554e4
commit 171c2c86ff

View File

@ -470,10 +470,10 @@ DatabaseSnapshot::DatabaseSnapshot(thread_db* tdbb, MemoryPool& pool, jrd_tra* t
if (rid == rel_mon_database) if (rid == rel_mon_database)
{ {
database_processed = database_seen;
if (fid == f_mon_db_name) if (fid == f_mon_db_name)
{ {
database_processed = database_seen;
// Do we look at our own database record? // Do we look at our own database record?
allowed = !dbb->dbb_database_name.compare(source, length); allowed = !dbb->dbb_database_name.compare(source, length);
if (allowed) if (allowed)
@ -483,7 +483,7 @@ DatabaseSnapshot::DatabaseSnapshot(thread_db* tdbb, MemoryPool& pool, jrd_tra* t
} }
} }
// We need to return the database record only once. // We need to return the database record only once
if (allowed && !database_processed) if (allowed && !database_processed)
{ {
putField(record, fid, source, length); putField(record, fid, source, length);