From bc3f9c3d909da1c471c022175690659d81a20509 Mon Sep 17 00:00:00 2001 From: prabatuty Date: Sat, 21 May 2011 18:05:23 +0000 Subject: [PATCH] setting lock bucket mutex name --- src/storage/SessionImpl.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/storage/SessionImpl.cxx b/src/storage/SessionImpl.cxx index b3a79723..c67163b2 100644 --- a/src/storage/SessionImpl.cxx +++ b/src/storage/SessionImpl.cxx @@ -88,6 +88,16 @@ DbRetVal SessionImpl::initSystemDatabase() printError(ErrSysInit, "Allocation of Lock buckets failed"); return ErrSysInit; } + Bucket* buckets = dbMgr->sysDb()->getLockHashBuckets(); + Bucket* bucket; + char mutName[IDENTIFIER_LENGTH]; + for (int i =0; i< LOCK_BUCKET_SIZE; i++) + { + bucket = &(buckets[i]); + sprintf(mutName, "LOCKBKT:%d", i); + bucket->mutex_.init(mutName); + } + db->releaseCheckpointMutex(); #if !(defined MMDB && defined EMBED) printf("Sys_DB [Size=%4.4ldMB] \nUser_DB [Size=%4.4ldMB]\n", Conf::config.getMaxSysDbSize()/1048576, Conf::config.getMaxDbSize()/1048576); -- 2.11.4.GIT