pointer question when sorted_searched in pop_heap and pop_back

16 views
Skip to first unread message

李俊良

unread,
Feb 27, 2016, 6:12:08 AM2/27/16
to hyperdex-discuss
the memory of top_n.back().key and top_n.back().value is stack space from top_n.back().ref, if pop_heap and pop_back, the ref stack address is changed, so key and top_n.back().key and top_n.back().value is invaild.

the code occur sorted_searched, see also patch from attachment



0001-fixed-pointer-question-when-sorted_searched-in-pop_h.patch

李俊良

unread,
Feb 28, 2016, 9:00:35 AM2/28/16
to hyperdex-discuss
fixed client sort merge

在 2016年2月27日星期六 UTC+8下午7:12:08,李俊良写道:
0002-fixed-client-merge-in-sorted_search.patch
Reply all
Reply to author
Forward
0 new messages