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

Function DOWNGRADE

src/jrd/lck.cpp:172–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172inline USHORT DOWNGRADE(thread_db* tdbb, Lock* lock)
173{
174 Database* const dbb = tdbb->getDatabase();
175
176 FbLocalStatus statusVector;
177
178 USHORT ret = lock->lck_compatible ?
179 internal_downgrade(tdbb, &statusVector, lock) :
180 dbb->lockManager()->downgrade(tdbb, &statusVector, lock->lck_id);
181
182 fb_assert(statusVector.isEmpty());
183
184 return ret;
185}
186
187#ifdef DEV_BUILD
188/* Valid locks are not NULL,

Callers 1

LCK_downgradeFunction · 0.85

Calls 5

internal_downgradeFunction · 0.85
getDatabaseMethod · 0.80
lockManagerMethod · 0.80
downgradeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected