table->table = node; //Update the global hashtable upon resize()
table->size = newsize;
table->mask = (newsize << 1)-1;
- table->numelements = 0;
for(i = 0; i < oldsize; i++) { //Outer loop for each bin in hash table
curr = &ptr[i];
#ifdef ABORTREADERS
if (record->abort) {
//abort this transaction
+ printf("ABORTING\n");
_longjmp(record->aborttrans,1);
} else
addtransaction(oid,record);
#ifdef TRANSSTATS
nRemoteSend++;
#endif
- STATUS(objcopy)=0;
#ifdef COMPILER
return &objcopy[1];
#else
objheader_t * header;
header = (objheader_t *)(((char *)newAddr) + offset);
oidToPrefetch = OID(header);
+ STATUS(header)=0;
int size = 0;
GETSIZE(size, header);
size += sizeof(objheader_t);
recv_data(sd, &size, sizeof(int));
objcopy = objstrAlloc(record->cache, size);
recv_data(sd, objcopy, size);
+ STATUS(objcopy)=0;
/* Insert into cache's lookup table */
chashInsert(record->lookupTable, oid, objcopy);
}