MCPcopy Create free account
hub / github.com/apache/cloudberry / pg_decode_begin_prepare_txn

Function pg_decode_begin_prepare_txn

contrib/test_decoding/test_decoding.c:348–362  ·  view source on GitHub ↗

BEGIN PREPARE callback */

Source from the content-addressed store, hash-verified

346
347/* BEGIN PREPARE callback */
348static void
349pg_decode_begin_prepare_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn)
350{
351 TestDecodingData *data = ctx->output_plugin_private;
352 TestDecodingTxnData *txndata =
353 MemoryContextAllocZero(ctx->context, sizeof(TestDecodingTxnData));
354
355 txndata->xact_wrote_changes = false;
356 txn->output_plugin_private = txndata;
357
358 if (data->skip_empty_xacts)
359 return;
360
361 pg_output_begin(ctx, data, txn, true);
362}
363
364/* PREPARE callback */
365static void

Callers

nothing calls this directly

Calls 2

MemoryContextAllocZeroFunction · 0.85
pg_output_beginFunction · 0.85

Tested by

no test coverage detected