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

Method isPageGCAllowed

src/jrd/btr.cpp:261–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261bool BtrPageGCLock::isPageGCAllowed(thread_db* tdbb, const PageNumber& page)
262{
263 BtrPageGCLock lock(tdbb);
264 page.getLockStr(lock.getKeyPtr());
265
266 ThreadStatusGuard temp_status(tdbb);
267
268 if (!LCK_lock(tdbb, &lock, LCK_write, LCK_NO_WAIT))
269 return false;
270
271 LCK_release(tdbb, &lock);
272 return true;
273}
274
275// IndexErrorContext class
276

Callers

nothing calls this directly

Calls 4

LCK_lockFunction · 0.85
LCK_releaseFunction · 0.85
getLockStrMethod · 0.80
getKeyPtrMethod · 0.80

Tested by

no test coverage detected