Commit 9af2b34
committed
radixtree: Fix crash when non-creator begins iteration over shared tree.
Previously, if a backend that attached to a shared tree attempted to
start iteration, it resulted in a crash. This commit resolves the
issue by ensuring iter_context is created in RT_ATTACH().
This fix applies only to v17, where radixtree.h was introduced. In the
master branch, this issue was separately resolved by 960013f, which
eliminated the iter_context entirely.
Reviewed-by: John Naylor
Discussion: https://postgr.es/m/CAD21AoBB2U47V=F+wQRB1bERov_of5=BOZGaybjaV8FLQyqG3Q@mail.gmail.com1 parent 32770ea commit 9af2b34
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1902 | 1902 | | |
1903 | 1903 | | |
1904 | 1904 | | |
| 1905 | + | |
1905 | 1906 | | |
1906 | 1907 | | |
1907 | 1908 | | |
| |||
1910 | 1911 | | |
1911 | 1912 | | |
1912 | 1913 | | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1913 | 1922 | | |
1914 | 1923 | | |
1915 | 1924 | | |
1916 | 1925 | | |
1917 | 1926 | | |
1918 | 1927 | | |
1919 | 1928 | | |
| 1929 | + | |
1920 | 1930 | | |
1921 | 1931 | | |
1922 | 1932 | | |
| |||
0 commit comments