Catch AbortException to abort the transaction but not generate an
error message, leaving the response untouched.
This commit is contained in:
parent
8014a390cb
commit
4f7de157b1
1 changed files with 6 additions and 1 deletions
|
@ -458,6 +458,11 @@ public final class RequestEvaluator implements Runnable {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
} // switch (reqtype)
|
} // switch (reqtype)
|
||||||
|
} catch (AbortException x) {
|
||||||
|
// res.abort() just aborts the transaction and
|
||||||
|
// leaves the respons untouched
|
||||||
|
abortTransaction();
|
||||||
|
done = true;
|
||||||
} catch (ConcurrencyException x) {
|
} catch (ConcurrencyException x) {
|
||||||
res.reset();
|
res.reset();
|
||||||
|
|
||||||
|
@ -490,7 +495,7 @@ public final class RequestEvaluator implements Runnable {
|
||||||
// If the transactor thread has been killed by the invoker thread we don't have to
|
// If the transactor thread has been killed by the invoker thread we don't have to
|
||||||
// bother for the error message, just quit.
|
// bother for the error message, just quit.
|
||||||
if (localrtx != rtx) {
|
if (localrtx != rtx) {
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
res.reset();
|
res.reset();
|
||||||
|
|
Loading…
Add table
Reference in a new issue