Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cee850c

Browse files
committed
revert 4d0d607
Revert due to contrib/test_decoding regression failure
1 parent 2362c2b commit cee850c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/access/heap/rewriteheap.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ logical_heap_rewrite_flush_mappings(RewriteState state)
897897

898898
/* write all mappings consecutively */
899899
len = src->num_mappings * sizeof(LogicalRewriteMappingData);
900-
waldata = MemoryContextAlloc(state->rs_cxt, len);
900+
waldata = palloc(len);
901901
waldata_start = waldata;
902902

903903
/*
@@ -943,7 +943,6 @@ logical_heap_rewrite_flush_mappings(RewriteState state)
943943
/* write xlog record */
944944
XLogInsert(RM_HEAP2_ID, XLOG_HEAP2_REWRITE, rdata);
945945

946-
pfree(waldata);
947946
}
948947
Assert(state->rs_num_rewrite_mappings == 0);
949948
}

0 commit comments

Comments
 (0)