Product Documentation

V9 Update Guide

Previous Topic

Next Topic

New Mode for Table Rebuilds with Missing Index Files

A new open mode of CTOPEN_DATAONLY was introduced to the c-treeDB API. When a ctdbOpenTable() is passed with the CTOPEN_DATAONLY mode, c-treeDB can invoke a full alter table call and rebuild all the indices, if they are missing or not.

Previously, c-treeDB could only rebuild a table with the table opened with the CTOPEN_CORRUPT mode and perform a full alter table by calling ctdbRebuildTable() or by implicitly calling ctdbAlterTable(CTDB_ALTER_FULL). While this method works quite well when a table is corrupt, it does not work if at least one of the index files were missing.

TOCIndex