Skip to content

Commit 3fc256e

Browse files
committed
data now inserted into spools(bug fixed); New Error: invalid tuplesort state
1 parent 044c81d commit 3fc256e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/smerge/smsort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ sm_flush(Relation heapRel, SmMetadata* metadata) {
765765

766766
for(int j = 0; j < metadata->K; j++) {
767767
Relation indexRel = index_open(metadata->tree[i][j], ExclusiveLock);
768-
_bt_spoolinit(heapRel, indexRel, metadata->unique, false); // Assuming heapRel is not being used
768+
btspools[i] = _bt_spoolinit(heapRel, indexRel, metadata->unique, false); // Assuming heapRel is not being used
769769

770770
currentSnapshot = GetActiveSnapshot();
771771
IndexScanDesc scan = index_beginscan(heapRel, indexRel, currentSnapshot, metadata->attnum, 0);

0 commit comments

Comments
 (0)