Revert due to contrib/test_decoding regression failure
This commit is contained in:
Bruce Momjian 2014-04-22 22:21:54 -04:00
parent 2362c2bd23
commit cee850c403

View File

@ -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);
}