changed to deal with new LinkedList api.
This commit is contained in:
parent
aa445bdfe5
commit
bb9e339823
1 changed files with 5 additions and 5 deletions
|
@ -34,7 +34,7 @@
|
||||||
#include <lladd/operations/prepare.h>
|
#include <lladd/operations/prepare.h>
|
||||||
|
|
||||||
static pblHashTable_t * transactionLSN;
|
static pblHashTable_t * transactionLSN;
|
||||||
static LinkedListPtr rollbackLSNs = NULL;
|
static LinkedList * rollbackLSNs = NULL;
|
||||||
/** @todo There is no real reason to have this mutex (which prevents
|
/** @todo There is no real reason to have this mutex (which prevents
|
||||||
concurrent aborts, except that we need to protect rollbackLSNs's
|
concurrent aborts, except that we need to protect rollbackLSNs's
|
||||||
from concurrent modifications. */
|
from concurrent modifications. */
|
||||||
|
@ -277,8 +277,8 @@ void InitiateRecovery() {
|
||||||
|
|
||||||
pblHtDelete(transactionLSN);
|
pblHtDelete(transactionLSN);
|
||||||
|
|
||||||
destroyList(rollbackLSNs);
|
destroyList(&rollbackLSNs);
|
||||||
rollbackLSNs=0;
|
assert(rollbackLSNs==0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -296,9 +296,9 @@ void undoTrans(TransactionLog transaction) {
|
||||||
|
|
||||||
Undo(0);
|
Undo(0);
|
||||||
if(rollbackLSNs) {
|
if(rollbackLSNs) {
|
||||||
destroyList(rollbackLSNs);
|
destroyList(&rollbackLSNs);
|
||||||
}
|
}
|
||||||
rollbackLSNs = 0;
|
assert(rollbackLSNs == 0);
|
||||||
pthread_mutex_unlock(&rollback_mutex);
|
pthread_mutex_unlock(&rollback_mutex);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue