compensations_init() was being called too late.

This commit is contained in:
Sears Russell 2006-07-27 23:59:21 +00:00
parent a0f1a4a7c1
commit 165b91cf76

View file

@ -104,8 +104,10 @@ void setupOperationsTable() {
int Tinit() { int Tinit() {
pthread_mutex_init(&transactional_2_mutex, NULL); pthread_mutex_init(&transactional_2_mutex, NULL);
numActiveXactions = 0; numActiveXactions = 0;
setupOperationsTable();
compensations_init();
setupOperationsTable();
dirtyPagesInit(); dirtyPagesInit();
bufInit(); bufInit();
@ -115,12 +117,14 @@ int Tinit() {
try_ret(compensation_error()) { try_ret(compensation_error()) {
pageOperationsInit(); pageOperationsInit();
} end_ret(compensation_error()); } end_ret(compensation_error());
initNestedTopActions(); initNestedTopActions();
TallocInit(); TallocInit();
ThashInit(); ThashInit();
LinearHashNTAInit(); LinearHashNTAInit();
LinkedListNTAInit(); LinkedListNTAInit();
compensations_init();
iterator_init(); iterator_init();
consumer_init(); consumer_init();
setupLockManagerCallbacksNil(); setupLockManagerCallbacksNil();