218219220221222223224225226227228
StorageManager storage = server.getStorageManager(); Transaction tx = new TransactionImpl(server.getStorageManager()); counter.increment(tx, 1); assertEquals(0, counter.getValue()); tx.commit();
276277278279280281282283284285286
Transaction tx = new TransactionImpl(xid, server.getStorageManager(), 300); for (int i = 0 ; i < 2000; i++) { counter.increment(tx, 1); } assertEquals(0, counter.getValue()); tx.prepare();
6869707172737475767778
103104105106107108109110111112113
Transaction tx = new TransactionImpl(server.getStorageManager()); for (int i = 0 ; i < 2100; i++) { counter.increment(tx, 1); if (i % 200 == 0) { tx.commit();
166167168169170171172173174175176
18991900190119021903190419051906190719081909
HornetQServerLogger.LOGGER.debug("Page " + entry.getKey() + " wasn't open, so we will just ignore"); } else { HornetQServerLogger.LOGGER.debug("Replacing counter " + value.get()); counter.increment(txRecoverCounter, value.get()); } } } else {
19081909191019111912191319141915191619171918
19051906190719081909191019111912191319141915
406407408409410411412413414415416