sanity check: dont start transaction if thread was killed
This commit is contained in:
parent
e5bb6cd091
commit
0bd08fb9bd
1 changed files with 6 additions and 2 deletions
|
@ -106,9 +106,13 @@ public class Transactor extends Thread {
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void begin (String tnm) throws Exception {
|
public synchronized void begin (String tnm) throws Exception {
|
||||||
if (active) {
|
|
||||||
|
if (killed)
|
||||||
|
throw new DbException ("Transaction started on killed thread");
|
||||||
|
|
||||||
|
if (active)
|
||||||
abort ();
|
abort ();
|
||||||
}
|
|
||||||
nodes.clear ();
|
nodes.clear ();
|
||||||
cleannodes.clear ();
|
cleannodes.clear ();
|
||||||
txn = nmgr.db.beginTransaction ();
|
txn = nmgr.db.beginTransaction ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue