Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbBeginImpersonation

Enables the ability of the thread to support impersonation by another thread.

Declaration

CTDBRET ctdbBeginImpersonation(CTHANDLE Handle, NINT taskId)

Description

Start the impersonation of the specific task ID.

Stores the current "lock mode" in the prevlockmode session property and begins the impersonation for the given taskId (ctImpersonateTask()).

Retrieves the server-side "lock mode" ctdbGetLockMode() after the impersonation and updates the lockmode session property.

Note: This function is not supported by the FairCom Server by default. It requires a custom build of the server available by special request.

Returns

CTDBRET_OK on success.

See Also

ctdbEndImpersonation()

TOCIndex