debugging code
authorbdemsky <bdemsky@uci.edu>
Mon, 25 Jul 2016 01:52:11 +0000 (18:52 -0700)
committerbdemsky <bdemsky@uci.edu>
Mon, 25 Jul 2016 01:52:11 +0000 (18:52 -0700)
src/java/iotcloud/Table.java

index bd9e15b..baf171d 100644 (file)
@@ -92,18 +92,22 @@ final public class Table {
                long seqn = buffer.getOldestSeqNum();
 
                if (forcedresize) {
+                       System.out.println("A");
                        TableStatus status=new TableStatus(s, FORCED_RESIZE_INCREMENT + numslots);
                        s.addEntry(status);
                }
 
                if ((numslots - buffer.size()) < FREE_SLOTS) {
                        /* have to check whether we have enough free slots */
+                       System.out.println("B");
                        long fullfirstseqn = buffer.getNewestSeqNum() + 1 - numslots;
                        seqn = fullfirstseqn < 1?1:fullfirstseqn;
                        for(int i=0; i < FREE_SLOTS; i++, seqn++) {
                                Slot prevslot=buffer.getSlot(seqn);
+                               System.out.println(i);
                                if (!prevslot.isLive())
                                        continue;
+                               System.out.println("islive");
                                Vector<Entry> liveentries = prevslot.getLiveEntries();
                                for(Entry liveentry:liveentries) {
                                        if (redundant(liveentry))