summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java b/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java
index d2cfe87..93bcbdc 100644
--- a/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java
+++ b/src/main/java/com/amazon/carbonado/repo/map/MapTransaction.java
@@ -126,6 +126,10 @@ class MapTransaction {
public void undo() {
storage.mapRemove(key);
}
+
+ public String toString() {
+ return "undo insert by remove: " + key;
+ }
});
}
@@ -137,6 +141,10 @@ class MapTransaction {
public void undo() {
storage.mapPut(old);
}
+
+ public String toString() {
+ return "undo update by put: " + old;
+ }
});
}
@@ -148,6 +156,10 @@ class MapTransaction {
public void undo() {
storage.mapPut(old);
}
+
+ public String toString() {
+ return "undo delete by put: " + old;
+ }
});
}