Product Documentation

c-treeRTG V2 Update Guide

Previous Topic

Next Topic

Adding an index to a data file open in shared mode

Beginning in c-treeRTG BTRV Edition V2, it is possible to add an index to a data file that is open in shared mode if the data file is only open once by the calling connection. This support improves the integration between c-treeRTG BTRV Edition and Btrieve applications by more closely matching Btrieve behavior. This feature changes the behavior of the PRMIIDX() and RBLIIDX() functions.

When adding an index to a file in shared mode, the data file is switched to exclusive mode, the index is added, then the data file is switched back to shared mode.

If adding an index member to a host index that is open in shared mode, we also switch the host index to exclusive mode, then switch it back to shared mode when we are done adding the index member.

TOCIndex