mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
revert 4d0d607a45
Revert due to contrib/test_decoding regression failure
This commit is contained in:
parent
2362c2bd23
commit
cee850c403
@ -897,7 +897,7 @@ logical_heap_rewrite_flush_mappings(RewriteState state)
|
||||
|
||||
/* write all mappings consecutively */
|
||||
len = src->num_mappings * sizeof(LogicalRewriteMappingData);
|
||||
waldata = MemoryContextAlloc(state->rs_cxt, len);
|
||||
waldata = palloc(len);
|
||||
waldata_start = waldata;
|
||||
|
||||
/*
|
||||
@ -943,7 +943,6 @@ logical_heap_rewrite_flush_mappings(RewriteState state)
|
||||
/* write xlog record */
|
||||
XLogInsert(RM_HEAP2_ID, XLOG_HEAP2_REWRITE, rdata);
|
||||
|
||||
pfree(waldata);
|
||||
}
|
||||
Assert(state->rs_num_rewrite_mappings == 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user