Commit 9c02cf5
committed
Remove block number field from nbtree stack.
The initial value of the nbtree stack downlink block number field
recorded during an initial descent of the tree wasn't actually used.
Both _bt_getstackbuf() callers overwrote the value with their own value.
Remove the block number field from the stack struct, and add a child
block number argument to _bt_getstackbuf() in its place. This makes the
overall design of _bt_getstackbuf() clearer.
Author: Peter Geoghegan
Reviewed-By: Anastasia Lubennikova
Discussion: https://postgr.es/m/CAH2-Wzmx+UbXt2YNOUCZ-a04VdXU=S=OHuAuD7Z8uQq-PXTYUg@mail.gmail.com1 parent fded477 commit 9c02cf5
File tree
5 files changed
+50
-42
lines changed- src
- backend/access/nbtree
- include/access
5 files changed
+50
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1797 | 1797 | | |
1798 | 1798 | | |
1799 | 1799 | | |
1800 | | - | |
1801 | 1800 | | |
1802 | 1801 | | |
1803 | 1802 | | |
| |||
1819 | 1818 | | |
1820 | 1819 | | |
1821 | 1820 | | |
1822 | | - | |
1823 | | - | |
| 1821 | + | |
1824 | 1822 | | |
1825 | 1823 | | |
1826 | 1824 | | |
| |||
1834 | 1832 | | |
1835 | 1833 | | |
1836 | 1834 | | |
1837 | | - | |
| 1835 | + | |
1838 | 1836 | | |
1839 | 1837 | | |
1840 | 1838 | | |
| |||
1901 | 1899 | | |
1902 | 1900 | | |
1903 | 1901 | | |
1904 | | - | |
1905 | | - | |
| 1902 | + | |
| 1903 | + | |
1906 | 1904 | | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
1911 | 1913 | | |
1912 | | - | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
1913 | 1924 | | |
1914 | | - | |
1915 | | - | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1916 | 1930 | | |
1917 | 1931 | | |
1918 | | - | |
| 1932 | + | |
1919 | 1933 | | |
1920 | 1934 | | |
1921 | 1935 | | |
| |||
1977 | 1991 | | |
1978 | 1992 | | |
1979 | 1993 | | |
1980 | | - | |
| 1994 | + | |
1981 | 1995 | | |
1982 | 1996 | | |
1983 | 1997 | | |
| |||
1993 | 2007 | | |
1994 | 2008 | | |
1995 | 2009 | | |
1996 | | - | |
| 2010 | + | |
1997 | 2011 | | |
1998 | 2012 | | |
1999 | 2013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1189 | 1189 | | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | | - | |
1193 | | - | |
| 1192 | + | |
1194 | 1193 | | |
1195 | 1194 | | |
1196 | 1195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
161 | 155 | | |
162 | 156 | | |
163 | 157 | | |
164 | 158 | | |
165 | | - | |
166 | 159 | | |
167 | 160 | | |
168 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
413 | 411 | | |
414 | | - | |
415 | 412 | | |
416 | 413 | | |
417 | 414 | | |
418 | 415 | | |
419 | | - | |
420 | 416 | | |
421 | 417 | | |
422 | 418 | | |
| |||
731 | 727 | | |
732 | 728 | | |
733 | 729 | | |
734 | | - | |
| 730 | + | |
735 | 731 | | |
736 | 732 | | |
737 | 733 | | |
| |||
0 commit comments