ctdbUpdateCndxIndexByName
Add, change or delete the conditional expression associated with an index, given by name.
Declaration
CTDBRET ctdbUpdateCndxIndexByName(CTHANDLE Handle, pTEXT indexname,
pTEXT cndexpr)
Description
ctdbUpdateCndxIndexByName() adds, changes or deletes the conditional expression associated with an index, given by name. After the conditional expression is successfully associated with the index, the index data is automatically rebuilt. To retrieve the conditional expression, use ctdbGetCndxIndex() or ctdbGetCndxIndexByName().
Returns
ctdbUpdateCndxIndexByName() returns CTDBRET_OK on success, or c-treeDB API C API error code on failure.
See also
ctdbUpdateCndxIndex(), ctdbGetCndxIndex(), ctdbGetCndxIndexByName(), ctdbGetCndxIndexLength(), ctdbGetCndxIndexLengthByName()