summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2018-01-24 08:34:52 +0100
committerHarald Musum <musum@oath.com>2018-01-24 08:34:52 +0100
commit032db7be29b1ac4444b88f4662d1f5a45acb7bcd (patch)
tree5c137ca219551520ed41e9ae75b6ff3e89df37e5 /vespajlib
parentd479ecf9a91b3d80822807d856f110eb19d988c4 (diff)
Remove transaction commit in mock provisioner that should never have been there
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/transaction/NestedTransaction.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/transaction/NestedTransaction.java b/vespajlib/src/main/java/com/yahoo/transaction/NestedTransaction.java
index 8953263df20..c860e9ead4f 100644
--- a/vespajlib/src/main/java/com/yahoo/transaction/NestedTransaction.java
+++ b/vespajlib/src/main/java/com/yahoo/transaction/NestedTransaction.java
@@ -88,6 +88,11 @@ public final class NestedTransaction implements AutoCloseable {
transaction.transaction.close();
}
+ @Override
+ public String toString() {
+ return String.join(",", transactions.stream().map(Object::toString).collect(Collectors.toList()));
+ }
+
private List<Transaction> organizeTransactions(List<ConstrainedTransaction> transactions) {
return orderTransactions(combineTransactions(transactions), findOrderingConstraints(transactions));
}
@@ -174,6 +179,11 @@ public final class NestedTransaction implements AutoCloseable {
/** Returns transaction types which should commit after this */
public Class<? extends Transaction>[] before() { return before; }
+ @Override
+ public String toString() {
+ return transaction.toString();
+ }
+
}
private static class OrderingConstraint {