Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d47702f

Browse files
Alexandra PervushinaAlena Rybakina
authored andcommitted
fix entry size
1 parent c4dbd74 commit d47702f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aqo_shared.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ aqo_memsize(void)
300300
size = add_size(size, hash_estimate_size(fs_max_items, sizeof(QueryTextEntry)));
301301
size = add_size(size, hash_estimate_size(fss_max_items, sizeof(DataEntry)));
302302
size = add_size(size, hash_estimate_size(fs_max_items, sizeof(QueriesEntry)));
303-
size = add_size(size, hash_estimate_size(fss_max_items, sizeof(DataEntry *)));
303+
size = add_size(size, hash_estimate_size(fss_max_items, sizeof(NeighboursEntry)));
304304

305305
return size;
306306
}

storage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,8 +1791,8 @@ _aqo_data_clean(uint64 fs)
17911791
* We found element in Neibours hash table and made change:
17921792
* either delete element of table or replace its value.
17931793
*/
1794-
aqo_state->neighbours_changed = true;
17951794
}
1795+
aqo_state->neighbours_changed = true;
17961796
LWLockRelease(&aqo_state->neighbours_lock);
17971797

17981798

@@ -2362,8 +2362,8 @@ cleanup_aqo_database(bool gentle, int *fs_num, int *fss_num)
23622362
* We found element in Neibours hash table and made change:
23632363
* either delete element of table or replace its value.
23642364
*/
2365-
aqo_state->neighbours_changed = true;
23662365
}
2366+
aqo_state->neighbours_changed = true;
23672367
LWLockRelease(&aqo_state->neighbours_lock);
23682368
}
23692369

0 commit comments

Comments
 (0)