}
public void updateRootOnMetaPage(PageNumber root, KernelContext kContext) throws ChaiDBException {
if (kContext != null && kContext.getNeedLog()) {
BTreeSpecLogRecord logRec = new BTreeSpecLogRecord(id, getBTreeSpec().getRootPageNumber().getPageNumber(), root.getPageNumber(), BTreeSpecLogRecord.ROOT_PAGE_NUMBER_FLAG, kContext.getLocker(), getType());
logRec.log();
}
getBTreeSpec().setRootPageNumber(root);
}
public Object decodeFromByteArray(byte[] bytes, Key key) throws ChaiDBException {