@@ -304,7 +304,7 @@ ensure_transaction(void)
304
304
* Returns true for streamed transactions, false otherwise (regular mode).
305
305
*/
306
306
static bool
307
- handle_streamed_transaction (const char action , StringInfo s )
307
+ handle_streamed_transaction (LogicalRepMsgType action , StringInfo s )
308
308
{
309
309
TransactionId xid ;
310
310
@@ -1090,7 +1090,7 @@ apply_handle_relation(StringInfo s)
1090
1090
{
1091
1091
LogicalRepRelation * rel ;
1092
1092
1093
- if (handle_streamed_transaction ('R' , s ))
1093
+ if (handle_streamed_transaction (LOGICAL_REP_MSG_RELATION , s ))
1094
1094
return ;
1095
1095
1096
1096
rel = logicalrep_read_rel (s );
@@ -1108,7 +1108,7 @@ apply_handle_type(StringInfo s)
1108
1108
{
1109
1109
LogicalRepTyp typ ;
1110
1110
1111
- if (handle_streamed_transaction ('Y' , s ))
1111
+ if (handle_streamed_transaction (LOGICAL_REP_MSG_TYPE , s ))
1112
1112
return ;
1113
1113
1114
1114
logicalrep_read_typ (s , & typ );
@@ -1148,7 +1148,7 @@ apply_handle_insert(StringInfo s)
1148
1148
TupleTableSlot * remoteslot ;
1149
1149
MemoryContext oldctx ;
1150
1150
1151
- if (handle_streamed_transaction ('I' , s ))
1151
+ if (handle_streamed_transaction (LOGICAL_REP_MSG_INSERT , s ))
1152
1152
return ;
1153
1153
1154
1154
ensure_transaction ();
@@ -1269,7 +1269,7 @@ apply_handle_update(StringInfo s)
1269
1269
RangeTblEntry * target_rte ;
1270
1270
MemoryContext oldctx ;
1271
1271
1272
- if (handle_streamed_transaction ('U' , s ))
1272
+ if (handle_streamed_transaction (LOGICAL_REP_MSG_UPDATE , s ))
1273
1273
return ;
1274
1274
1275
1275
ensure_transaction ();
@@ -1426,7 +1426,7 @@ apply_handle_delete(StringInfo s)
1426
1426
TupleTableSlot * remoteslot ;
1427
1427
MemoryContext oldctx ;
1428
1428
1429
- if (handle_streamed_transaction ('D' , s ))
1429
+ if (handle_streamed_transaction (LOGICAL_REP_MSG_DELETE , s ))
1430
1430
return ;
1431
1431
1432
1432
ensure_transaction ();
@@ -1795,7 +1795,7 @@ apply_handle_truncate(StringInfo s)
1795
1795
List * relids_logged = NIL ;
1796
1796
ListCell * lc ;
1797
1797
1798
- if (handle_streamed_transaction ('T' , s ))
1798
+ if (handle_streamed_transaction (LOGICAL_REP_MSG_TRUNCATE , s ))
1799
1799
return ;
1800
1800
1801
1801
ensure_transaction ();
0 commit comments