Table level locking support
commitaa1557ab23116920ba3dcde55cd6e870accf3410
authorprabatuty <prabatuty>
Tue, 19 Feb 2008 17:49:45 +0000 (19 17:49 +0000)
committerprabatuty <prabatuty>
Tue, 19 Feb 2008 17:49:45 +0000 (19 17:49 +0000)
tree245806cb2ad018a415be2667317ef426571f8cfc
parent18677c84df07d49032ed4ea17dc2eb3d0359f5e6
Table level locking support
It takes shared lock on chunk ptr of the table during dbMgr->openTable() and
releases it during dbMgr->closeTable()
dbMgr->dropTable() acquires X lock on the table.
So if anybody has opened the table, it will not allow to drop the table.
15 files changed:
include/Index.h
include/Process.h
include/Table.h
include/TableImpl.h
include/Util.h
src/cache/CacheTableLoader.cxx
src/cache/Makefile
src/server/DatabaseManagerImpl.cxx
src/server/HashIndex.cxx
src/server/LockManager.cxx
src/server/Makefile
src/server/Process.cxx
src/server/TableImpl.cxx
src/sql/Makefile
tmptest/create.c