LeafControlRow control_row =
new LeafControlRow(open_btree, page, null, true);
byte insertFlag = Page.INSERT_INITIAL;
insertFlag |= Page.INSERT_DEFAULT;
RecordHandle rh =
page.insertAtSlot(
Page.FIRST_SLOT_NUMBER,
control_row.getRow(),
(FormatableBitSet) null,
(LogicalUndo) null, insertFlag,
AccessFactoryGlobals.BTREE_OVERFLOW_THRESHOLD);
if (SanityManager.DEBUG)
{
RecordHandle rh2 = null;
rh2 = page.fetchFromSlot(
(RecordHandle) null,
Page.FIRST_SLOT_NUMBER,
new DataValueDescriptor[0], (FetchDescriptor) null, true);
SanityManager.ASSERT(rh.getId() == rh2.getId() &&
rh.getPageNumber() == rh2.getPageNumber());
}
if (SanityManager.DEBUG)
{
if (SanityManager.DEBUG_ON("enableBtreeConsistencyCheck"))