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

Method downgrade

src/jrd/cch.cpp:5222–5240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5220
5221
5222void BufferDesc::downgrade(SyncType syncType)
5223{
5224 // SH -> SH is no-op
5225 if (syncType == SYNC_SHARED && !bdb_writers)
5226 return;
5227
5228 if (bdb_writers != 1)
5229 BUGCHECK(296); // inconsistent latch downgrade call
5230
5231 // EX -> EX is no-op
5232 if (syncType == SYNC_EXCLUSIVE)
5233 return;
5234
5235 --bdb_writers;
5236
5237 bdb_exclusive = NULL;
5238
5239 bdb_syncPage.downgrade(syncType);
5240}
5241
5242
5243void BufferDesc::release(thread_db* tdbb, bool repost)

Callers 9

getRelDataMethod · 0.45
findStatesMethod · 0.45
CCH_exclusive_attachmentFunction · 0.45
CCH_fetchFunction · 0.45
CCH_handoffFunction · 0.45
CCH_releaseFunction · 0.45
get_oldest_bufferFunction · 0.45
get_bufferFunction · 0.45
DOWNGRADEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected