File tree 1 file changed +2
-21
lines changed
src/backend/access/smerge
1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,8 @@ _get_curr_btree (SmMetadata* metadata) {
165
165
}
166
166
167
167
/*
168
- * smergeinsert() -- insert an index tuple into a btree.
168
+ * smergeinsert() -- insert an index tuple into curr btree.
169
169
*
170
- * Descend the tree recursively, find the appropriate location for our
171
- * new tuple, and put it there.
172
170
*/
173
171
bool
174
172
smergeinsert (Relation rel , Datum * values , bool * isnull ,
@@ -300,24 +298,7 @@ smergegettuple(IndexScanDesc scan, ScanDirection dir)
300
298
break ;
301
299
}
302
300
// printf("Debug: btgettuple returns %d\n", res);
303
- }
304
-
305
- /* If we're out of index entries, we're done */
306
- // if (!res)
307
- // {
308
- // /* ... but first, release any held pin on a heap page */
309
- // if (BufferIsValid(bt_scan->xs_cbuf))
310
- // {
311
- // ReleaseBuffer(bt_scan->xs_cbuf);
312
- // bt_scan->xs_cbuf = InvalidBuffer;
313
- // }
314
- // return false;
315
- // }
316
-
317
- // pgstat_count_index_tuples(bt_scan->indexRelation, 1);
318
-
319
- /* Return the TID of the tuple we found. */
320
- // return &bt_scan->xs_ctup.t_self;
301
+ }
321
302
322
303
return res ;
323
304
}
You can’t perform that action at this time.
0 commit comments