mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
revert 4d0d607a454ee832574afd52a3c515099cc85eb3
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 */
|
/* write all mappings consecutively */
|
||||||
len = src->num_mappings * sizeof(LogicalRewriteMappingData);
|
len = src->num_mappings * sizeof(LogicalRewriteMappingData);
|
||||||
waldata = MemoryContextAlloc(state->rs_cxt, len);
|
waldata = palloc(len);
|
||||||
waldata_start = waldata;
|
waldata_start = waldata;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -943,7 +943,6 @@ logical_heap_rewrite_flush_mappings(RewriteState state)
|
|||||||
/* write xlog record */
|
/* write xlog record */
|
||||||
XLogInsert(RM_HEAP2_ID, XLOG_HEAP2_REWRITE, rdata);
|
XLogInsert(RM_HEAP2_ID, XLOG_HEAP2_REWRITE, rdata);
|
||||||
|
|
||||||
pfree(waldata);
|
|
||||||
}
|
}
|
||||||
Assert(state->rs_num_rewrite_mappings == 0);
|
Assert(state->rs_num_rewrite_mappings == 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user