vgritsenko 2003/12/21 17:35:50
Modified: java/src/org/apache/xindice/core/filer BTree.java Log: Do not ignore IOException in createPage. Revision Changes Path 1.23 +9 -16 xml-xindice/java/src/org/apache/xindice/core/filer/BTree.java Index: BTree.java =================================================================== RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/core/filer/BTree.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- BTree.java 19 Dec 2003 02:34:24 -0000 1.22 +++ BTree.java 22 Dec 2003 01:35:50 -0000 1.23 @@ -420,21 +420,14 @@ } } - private BTreeNode createBTreeNode(byte status, BTreeNode parent) { - try { - Page p = getFreePage(); - BTreeNode node = new BTreeNode(p, parent, new Value[0], new long[0]); - node.ph.setStatus(status); - synchronized (cache) { - cache.put(p.getPageNum(), new WeakReference(node)); - } - return node; - } catch (Exception e) { - if (log.isWarnEnabled()) { - log.warn("Ignored exception", e); - } - return null; + private BTreeNode createBTreeNode(byte status, BTreeNode parent) throws IOException { + Page p = getFreePage(); + BTreeNode node = new BTreeNode(p, parent, new Value[0], new long[0]); + node.ph.setStatus(status); + synchronized (cache) { + cache.put(p.getPageNum(), new WeakReference(node)); } + return node; } /**