summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2012-11-27 21:00:31 +0000
committerBrian S. O'Neill <bronee@gmail.com>2012-11-27 21:00:31 +0000
commit6ba986731d5f9f35fd6a9f63d61cbd8288a9c12c (patch)
treeeb5fde397a16c47ccbb8ff2e496814d5346490d6 /src/main
parent3505fce1fd46fe9aa2a35986406eaa26b00bf0c8 (diff)
Rollback change 1398. Triggers run in a non-for-update transaction again.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/amazon/carbonado/gen/StorableGenerator.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
index adf11ba..4a0d74e 100644
--- a/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
+++ b/src/main/java/com/amazon/carbonado/gen/StorableGenerator.java
@@ -3294,7 +3294,6 @@ public final class StorableGenerator<S extends Storable> {
// txn = null;
// } else {
// txn = support.getRootRepository().enterTransaction();
- // txn.setForUpdate(true);
// tryStart:
// if (forTry) {
// state = trigger.beforeTryXxx(this);
@@ -3322,11 +3321,6 @@ public final class StorableGenerator<S extends Storable> {
b.invokeInterface(mSupportType, "getRootRepository", repositoryType, null);
b.invokeInterface(repositoryType, ENTER_TRANSACTION_METHOD_NAME, transactionType, null);
b.storeLocal(txnVar);
- // txn.setForUpdate(true);
- b.loadLocal(txnVar);
- b.loadConstant(true);
- b.invokeInterface(transactionType, SET_FOR_UPDATE_METHOD_NAME, null,
- new TypeDesc[] {TypeDesc.BOOLEAN});
Label tryStart = b.createLabel().setLocation();