- Timestamp:
- 10/15/07 14:03:28 (5 years ago)
- Location:
- hw/hw2
- Files:
-
- 2 modified
-
MyStuff/gistget.c (modified) (3 diffs)
-
postgresql-8.2.4/src/backend/access/gist/gistget.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hw/hw2/MyStuff/gistget.c
r54 r65 228 228 * Kornacker/Mohan/Hellerstein, SIGMOD 1997, for details. 229 229 */ 230 static void230 static bool 231 231 gistnext_checksplit(IndexScanDesc scan, GISTScanOpaque so, Page p, 232 232 GISTPageOpaque opaque) … … 266 266 } 267 267 } 268 return resetoffset; 268 269 } 269 270 … … 310 311 p = BufferGetPage(so->curbuf); 311 312 opaque = GistPageGetOpaque(p); 312 resetoffset = false;313 313 314 314 /* deal with case where this page split since last we saw it */ 315 gistnext_checksplit(scan, so, p, opaque);315 resetoffset = gistnext_checksplit(scan, so, p, opaque); 316 316 317 317 /* if page is empty, then just skip it */ -
hw/hw2/postgresql-8.2.4/src/backend/access/gist/gistget.c
r55 r65 228 228 * Kornacker/Mohan/Hellerstein, SIGMOD 1997, for details. 229 229 */ 230 static void230 static bool 231 231 gistnext_checksplit(IndexScanDesc scan, GISTScanOpaque so, Page p, 232 232 GISTPageOpaque opaque) … … 266 266 } 267 267 } 268 return resetoffset; 268 269 } 269 270 … … 310 311 p = BufferGetPage(so->curbuf); 311 312 opaque = GistPageGetOpaque(p); 312 resetoffset = false;313 313 314 314 /* deal with case where this page split since last we saw it */ 315 gistnext_checksplit(scan, so, p, opaque);315 resetoffset = gistnext_checksplit(scan, so, p, opaque); 316 316 317 317 /* if page is empty, then just skip it */
