StringBuffer debug = new StringBuffer(); debug.append("Removed pages: ");
    public void removeAll(long p) {    	StringBuffer debug = new StringBuffer();    	debug.append("Removed pages: ");        long pnum = StorageAddress.pageFromPointer(p);        while(-1 < pnum) {        	debug.append(' ').append(pnum);            DOMPage page = getCurrentPage(pnum);            pnum = page.getPageHeader().getNextDataPage();            dataCache.remove(page);            try {            	DOMFilePageHeader ph = page.getPageHeader();                ph.setNextDataPage(-1);                ph.setPrevDataPage(-1);                ph.setDataLength(0);                ph.setNextTID((short) -1);                ph.setRecordCount((short) 0);                page.len = 0;                unlinkPages(page.page);            } catch (IOException e) {                LOG.warn("Error while removing page: " + e.getMessage(), e);            }        }        LOG.debug(debug.toString());    }