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
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();
18641865186618671868186918701871187218731874
log.debug("Page " + entry.getKey() + " wasn't open, so we will just ignore"); } else { log.debug("Replacing counter " + value.get()); counter.increment(txRecoverCounter, value.get()); } } } else {