public static void deleteKey(Index index, byte[] deleteKey) throws Exception { try { // Index inx=CatalogManager.getIndex(index.indexName); BPlusTree thisTree = new BPlusTree(index, index.rootNum); /*This place has bugs.*/ thisTree.delete(deleteKey); // index.rootNum=thisTree.myRootBlock.blockOffset; setIndexRoot(index.indexName, thisTree.myRootBlock.getPageNum()); } catch (NullPointerException e) { System.err.println(); } }