int updatePrefetchCache(trans_req_data_t *tdata) {
int retval;
char oidType;
+ /*//TODO comment it for now because objects read are already in the prefetch cache
oidType = 'R';
if(tdata->f.numread > 0) {
if((retval = copyToCache(tdata->f.numread, (unsigned int *)(tdata->objread), oidType)) != 0) {
return -1;
}
}
+ */
if(tdata->f.nummod > 0) {
oidType = 'M';
if((retval = copyToCache(tdata->f.nummod, tdata->oidmod, oidType)) != 0) {
int i;
for (i = 0; i < numoid; i++) {
unsigned int oid;
- if(oidType == 'R') {
- char * objread = (char *) oidarray;
- oid = *((unsigned int *)(objread+(sizeof(unsigned int)+
- sizeof(unsigned short))*i));
- } else {
+ //if(oidType == 'R') {
+ // char * objread = (char *) oidarray;
+ // oid = *((unsigned int *)(objread+(sizeof(unsigned int)+
+ // sizeof(unsigned short))*i));
+ //} else {
oid = oidarray[i];
- }
+ //}
pthread_mutex_lock(&prefetchcache_mutex);
objheader_t * header;
if((header = (objheader_t *) t_chashSearch(oid)) == NULL) {