mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 19:47:49 +01:00
[#937] Fixed nested transactions that query database.
Nested transactions, Transaction#executeOther(Transaction), where the inner transaction performed a query ran into NPE since the Database used for the query had not been defined.
This commit is contained in:
parent
5eef819308
commit
6806e6c98e
@ -140,9 +140,11 @@ public abstract class Transaction {
|
||||
}
|
||||
|
||||
protected void executeOther(Transaction transaction) {
|
||||
transaction.db = db;
|
||||
transaction.connection = this.connection;
|
||||
transaction.performOperations();
|
||||
transaction.connection = null;
|
||||
transaction.db = null;
|
||||
}
|
||||
|
||||
protected UUID getServerUUID() {
|
||||
|
Loading…
Reference in New Issue
Block a user