ctdbGetDefaultIndex
Return the current default index.
Declaration
NINT ctdbGetDefaultIndex(CTHANDLE Handle)
Description
ctdbGetDefaultIndex() returns the current default index number. When the record handle is initialized for the first time, the default index is set to zero. To retrieve the index name, use ctdbGetDefaultIndexName(). Use ctdbSetDefaultIndex() to set the default index for the table.
Returns
ctdbGetDefaultIndex() returns the table default index, or -1 on error.
See also
ctdbAllocRecord(), ctdbGetTableIndexCount(), ctdbSetDefaultIndex(), ctdbGetDefaultIndexName()