Product Documentation

FairCom DB 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 FairCom DB API error code on failure.

See also

ctdbAllocIndex(), ctdbAddSegment(), ctdbInsSegment()

TOCIndex