changes
authorbdemsky <bdemsky>
Mon, 23 Feb 2009 00:13:04 +0000 (00:13 +0000)
committerbdemsky <bdemsky>
Mon, 23 Feb 2009 00:13:04 +0000 (00:13 +0000)
Robust/src/Runtime/DSTM/interface/trans.c

index 43bcbf8736a11b34224cd3a0eb16e27f0be9a572..e0a16ae72da0bab6ebd91a0dc08631b453261bc6 100644 (file)
@@ -402,7 +402,8 @@ __attribute__((pure)) objheader_t *transRead(transrecord_t *record, unsigned int
 #ifdef ABORTREADERS
   if (record->abort) {
     //abort this transaction
-    printf("ABORTING\n");
+    //printf("ABORTING\n");
+    removetransactionhash(record->lookupTable, record);
     objstrDelete(record->cache);
     chashDelete(record->lookupTable);
     _longjmp(record->aborttrans,1);
@@ -575,6 +576,7 @@ int transCommit(transrecord_t *record) {
   if (record->abort) {
     //abort this transaction
     printf("ABORTING TRANSACTION AT COMMIT\n");
+    removetransactionhash(record->lookupTable, record);
     objstrDelete(record->cache);
     chashDelete(record->lookupTable);
     free(record);