8000 add memcpy · postgrespro/aqo@32a4f0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 32a4f0e

Browse files
author
Alexandra Pervushina
committed
add memcpy
1 parent 855754c commit 32a4f0e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

storage.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,16 +1393,15 @@ aqo_data_store(uint64 fs, int fss, OkNNrdata *data, List *reloids)
13931393
prev = (DataEntry **) hash_search(fss_neighbours, &fss, HASH_ENTER, &found);
13941394
if (!found)
13951395
{
1396-
*prev = entry;
1396+
prev = memcpy(palloc(sizeof(DataEntry **)), entry, sizeof(DataEntry **));
1397+
//*prev = entry;
13971398
}
13981399
else
13991400
{
14001401
(*prev)->list.next_fs = fss;
1402+
neighbour_list.prev_fs = (*prev)->key.fs;
14011403
}
1402-
neighbour_list.prev_fs = (*prev)->key.fs;
14031404

1404-
prev = (DataEntry **) hash_search(fss_neighbours, &fss, HASH_FIND, &found);
1405-
elog(NOTICE, "%d", found);
14061405

14071406
/*
14081407
* Copy AQO data into allocated DSA segment

0 commit comments

Comments
 (0)
0