Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetIndexDuplicateFlag

Set the allow duplicate flag for this index.

Declaration

CTDBRET ctdbSetIndexDuplicateFlag(CTHANDLE Handle, CTBOOL DupFlag)

Description

ctdbSetIndexDuplicateFlag() sets the allow duplicate key flag for this index. Use ctdbGetIndexDuplicateFlag() to retrieve the allow duplicate key flag for the desired index.

  • Handle [in] the index handle.
  • DupFlag [in] the flag to indicate if duplicates are allowed.

Returns

ctdbSetIndexDuplicateFlag() returns CTDBRET_OK on success, or a c-treeDB API C API error code on failure.

See also

ctdbAllocIndex(), ctdbGetIndexDuplicateFlag()

TOCIndex