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

Function get_lockname_v3

src/jrd/tra.cpp:2325–2356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2323
2324
2325static const char* get_lockname_v3(const UCHAR lock)
2326{
2327/**************************************
2328 *
2329 * g e t _ l o c k n a m e _ v 3
2330 *
2331 **************************************
2332 *
2333 * Functional description
2334 * Get the lock mnemonic, given its binary value.
2335 * This is for TPB versions 1 & 3.
2336 *
2337 **************************************/
2338 const char* typestr = "unknown";
2339 switch (lock)
2340 {
2341 case LCK_none:
2342 case LCK_SR:
2343 typestr = "isc_tpb_lock_read, isc_tpb_shared";
2344 break;
2345 case LCK_PR:
2346 typestr = "isc_tpb_lock_read, isc_tpb_protected/isc_tpb_exclusive";
2347 break;
2348 case LCK_SW:
2349 typestr = "isc_tpb_lock_write, isc_tpb_shared";
2350 break;
2351 case LCK_EX:
2352 typestr = "isc_tpb_lock_write, isc_tpb_protected/isc_tpb_exclusive";
2353 break;
2354 }
2355 return typestr;
2356}
2357
2358
2359static ULONG inventory_page(thread_db* tdbb, ULONG sequence)

Callers 1

expand_view_lockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected