check whether we should bypass commit procedure and just abort
if (record->abort) {
//abort this transaction
printf("ABORTING\n");
+ objstrDelete(record->cache);
+ chashDelete(record->longTable);
_longjmp(record->aborttrans,1);
} else
addtransaction(oid,record);
trans_commit_data_t transinfo; /* keeps track of objs locked during transaction */
char finalResponse;
+#ifdef ABORTREADERS
+ if (record->abort) {
+ //abort this transaction
+ printf("ABORTING TRANSACTION AT COMMIT\n");
+ objstrDelete(record->cache);
+ chashDelete(record->longTable);
+ free(record);
+ return 1;
+ }
+#endif
+
+
do {
trecvcount = 0;
treplyretry = 0;