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

Fixed the broken monitoring code.

This commit is contained in:
dimitr 2012-03-20 10:10:31 +00:00
parent 9da1c0eae6
commit 0eb5957c73

View File

@ -715,20 +715,16 @@ void DataDump::putField(thread_db* tdbb, Record* record, const DumpField& field,
bid* blob_id = reinterpret_cast<bid*>(to_desc.dsc_address); bid* blob_id = reinterpret_cast<bid*>(to_desc.dsc_address);
jrd_tra* tran = tdbb->getTransaction(); jrd_tra* tran = tdbb->getTransaction();
#ifdef DEV_BUILD if (!tran->tra_blobs->locate(blob_id->bid_temp_id()))
const bool traFound = tran->tra_blobs->locate(blob_id->bid_temp_id()); fb_assert(false);
fb_assert(traFound);
#endif
BlobIndex& blobIdx = tran->tra_blobs->current(); BlobIndex& blobIdx = tran->tra_blobs->current();
fb_assert(!blobIdx.bli_materialized); fb_assert(!blobIdx.bli_materialized);
if (blobIdx.bli_request) if (blobIdx.bli_request)
{ {
#ifdef DEV_BUILD if (!blobIdx.bli_request->req_blobs.locate(blobIdx.bli_temp_id))
const bool reqFound = blobIdx.bli_request->req_blobs.locate(blobIdx.bli_temp_id); fb_assert(false);
fb_assert(reqFound);
#endif
blobIdx.bli_request->req_blobs.fastRemove(); blobIdx.bli_request->req_blobs.fastRemove();
blobIdx.bli_request = NULL; blobIdx.bli_request = NULL;