| 993 | |
| 994 | |
| 995 | static void hash_allocate(Lock* lock) |
| 996 | { |
| 997 | /************************************** |
| 998 | * |
| 999 | * h a s h _ a l l o c a t e |
| 1000 | * |
| 1001 | ************************************** |
| 1002 | * |
| 1003 | * Functional description |
| 1004 | * Allocate the hash table for handling |
| 1005 | * compatible locks. |
| 1006 | * |
| 1007 | **************************************/ |
| 1008 | fb_assert(LCK_CHECK_LOCK(lock)); |
| 1009 | |
| 1010 | Jrd::Attachment* const attachment = lock->getLockAttachment(); |
| 1011 | |
| 1012 | if (attachment) |
| 1013 | { |
| 1014 | attachment->att_compatibility_table = |
| 1015 | vec<Lock*>::newVector(*attachment->att_pool, LOCK_HASH_SIZE); |
| 1016 | } |
| 1017 | } |
| 1018 | |
| 1019 | |
| 1020 | static Lock* hash_get_lock(Lock* lock, USHORT* hash_slot, Lock*** prior) |
no test coverage detected