From 171c2c86ff7780e811a21d977bf7a85160be5294 Mon Sep 17 00:00:00 2001 From: dimitr Date: Tue, 21 Nov 2006 13:56:39 +0000 Subject: [PATCH] Fixed the issue spotted by Martijn. --- src/jrd/DatabaseSnapshot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jrd/DatabaseSnapshot.cpp b/src/jrd/DatabaseSnapshot.cpp index 8f00eb3372..c093cce45a 100644 --- a/src/jrd/DatabaseSnapshot.cpp +++ b/src/jrd/DatabaseSnapshot.cpp @@ -470,10 +470,10 @@ DatabaseSnapshot::DatabaseSnapshot(thread_db* tdbb, MemoryPool& pool, jrd_tra* t if (rid == rel_mon_database) { - database_processed = database_seen; - if (fid == f_mon_db_name) { + database_processed = database_seen; + // Do we look at our own database record? allowed = !dbb->dbb_database_name.compare(source, length); 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) { putField(record, fid, source, length);