Skip to content

Copy iterator result in BitmapHeapNext #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

knizhnik
Copy link

@knizhnik knizhnik commented Apr 3, 2023

See #275

}
else
node->tbmres = tbmres = tbm_shared_iterate(shared_tbmiterator);
tbmres = tbm_shared_iterate(shared_tbmiterator);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not hold a lock whilst reading from the shared iterator?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this part of iterator is private to the process - it is not in shared memory.
It allows original code to access this data without any locks

@knizhnik knizhnik merged commit 03505eb into REL_15_STABLE_neon Apr 7, 2023
@knizhnik knizhnik deleted the heap_bitmap_scan_prefetch_fix2_v15 branch April 7, 2023 05:46
MMeent pushed a commit that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants