Skip to content

Commit e49f2fd

Browse files
committed
Bugfix. Incorrect pointer shift during reading from learn_cache.
1 parent 56dcbb7 commit e49f2fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎learn_cache.c

+6
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ lc_update_fss(uint64 fs, int fss, OkNNrdata *data, List *reloids)
127127
}
128128
}
129129

130+
/*
131+
* Kludge code. But we should rewrite this code because now all knowledge
132+
* base lives in non-transactional shared memory.
133+
*/
134+
ptr = (char *) hdr + sizeof(dsm_block_hdr) + (sizeof(double) * data->cols * aqo_K);
135+
130136
/* copy targets into DSM storage */
131137
memcpy(ptr, data->targets, sizeof(double) * hdr->rows);
132138
ptr += sizeof(double) * aqo_K;

0 commit comments

Comments
 (0)