Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6422e34

Browse files
author
Alexandra Pervushina
committed
add memcpy
1 parent53c1781 commit6422e34

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)

[8]ページ先頭

©2009-2025 Movatter.jp