Skip to content

Commit bf0e8bb

Browse files
danolivoAlena0704
authored andcommitted
Bugfix. Incorrect pointer shift during reading from learn_cache.
1 parent 1cef390 commit bf0e8bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

learn_cache.c

Lines changed: 6 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy