Property :: repairCollection - Repair collection
The function checks the physical consistency of all indexes and collection instances. Detected damages are repaired. Moreover, the function checks inverse references for all relationships for collection instances. Messages about repair actions are written to the error log file.
The function will remove index entries pointing to invalid instance (deleted). It repairs also index tree information in large indexes.
The function will not detect logical inconsistencies in indexes, i.e. missing index entries or invalid keys. In order to repair this type of inconsistency, one may call repairKey() or rebuildIndex().
The function works similar as callingcheckCollection("-C:IXK T:A -R -S").
The result string contains the result of an action or operation.
Implementation details
The function returns a string containing repair protocol messages.