Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbTableHasLocks

ctdbTableHasLocks() checks if any locks have been acquired by the current user on a table.

Declaration

CTBOOL ctdbDECL ctdbTableHasLocks(CTHANDLE Handle)

Description

  • Handle [IN] - Table handle

Check if any locks have been acquired on the table in the current session. This function uses the new the new ctCHK_ANYLOK LOKREC() mode.

Returns

Returns NO if no lock is present or failure (use ctdbGetError() to check), YES it there is at least one lock.

TOCIndex