Skip to content

Commit 1652142

Browse files
committed
cleaning
1 parent 6fbe95b commit 1652142

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/backend/access/smerge/smerge.c

+2-21
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ _get_curr_btree (SmMetadata* metadata) {
165165
}
166166

167167
/*
168-
* smergeinsert() -- insert an index tuple into a btree.
168+
* smergeinsert() -- insert an index tuple into curr btree.
169169
*
170-
* Descend the tree recursively, find the appropriate location for our
171-
* new tuple, and put it there.
172170
*/
173171
bool
174172
smergeinsert(Relation rel, Datum *values, bool *isnull,
@@ -300,24 +298,7 @@ smergegettuple(IndexScanDesc scan, ScanDirection dir)
300298
break;
301299
}
302300
// 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+
}
321302

322303
return res;
323304
}

0 commit comments

Comments
 (0)