Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDelSegment

Delete segment indicated by SegNumber.

Declaration

CTDBRET ctdbDelSegment(CTHANDLE Handle, NINT SegNumber)

Description

ctdbDelSegment() deletes a segment from an index. The segment to be deleted is indicated by SegNumber. Use ctdbAddSegment() and ctdbInsSegment() to add new index segments.

  • Handle [in] the index handle.
  • SegNumber [in] the index segment number to be deleted.

Returns

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

See also

ctdbAllocIndex(), ctdbAddSegment(), ctdbInsSegment()

TOCIndex