@@ -879,7 +879,7 @@ void MtmJoinTransaction(GlobalTransactionId* gtid, csn_t globalSnapshot)
879
879
if (!TransactionIdIsValid (gtid -> xid )) {
880
880
/* In case of recovery InvalidTransactionId is passed */
881
881
if (Mtm -> status != MTM_RECOVERY ) {
882
- elog (PANIC ,"Node %d tries to recover node %d which is in %s mode" ,MtmReplicationNode ,MtmNodeId ,MtmNodeStatusMnem [Mtm -> status ]);
882
+ elog (PANIC ,"Node %d tries to recover node %d which is in %s mode" ,MtmReplicationNodeId ,MtmNodeId ,MtmNodeStatusMnem [Mtm -> status ]);
883
883
}
884
884
}else if (Mtm -> status == MTM_RECOVERY ) {
885
885
/* When recovery is completed we get normal transaction ID and switch to normal mode */
@@ -1138,7 +1138,7 @@ MtmCheckClusterLock()
1138
1138
}else {
1139
1139
/* All lockers are synchronized their logs */
1140
1140
/* Remove lock and mark them as receovered */
1141
- elog (WARNING ,"Complete recovery of %d nodes (node mask %lx)" ,Mtm -> nLockers ,Mtm -> nodeLockerMask );
1141
+ elog (WARNING ,"Complete recovery of %d nodes (node mask %lx)" ,Mtm -> nLockers ,( long ) Mtm -> nodeLockerMask );
1142
1142
Assert (Mtm -> walSenderLockerMask == 0 );
1143
1143
Assert ((Mtm -> nodeLockerMask & Mtm -> disabledNodeMask )== Mtm -> nodeLockerMask );
1144
1144
Mtm -> disabledNodeMask &= ~Mtm -> nodeLockerMask ;
@@ -1198,7 +1198,7 @@ bool MtmRefreshClusterStatus(bool nowait)
1198
1198
1199
1199
clique = MtmFindMaxClique (matrix ,MtmNodes ,& clique_size );
1200
1200
if (clique_size >=MtmNodes /2 + 1 ) {/* have quorum */
1201
- elog (WARNING ,"Find clique %lx, disabledNodeMask %lx" ,clique ,Mtm -> disabledNodeMask );
1201
+ elog (WARNING ,"Find clique %lx, disabledNodeMask %lx" ,( long ) clique , ( long ) Mtm -> disabledNodeMask );
1202
1202
MtmLock (LW_EXCLUSIVE );
1203
1203
mask = ~clique & (((nodemask_t )1 <<MtmNodes )- 1 )& ~Mtm -> disabledNodeMask ;/* new disabled nodes mask */
1204
1204
for (i = 0 ;mask != 0 ;i ++ ,mask >>=1 ) {
@@ -1226,7 +1226,7 @@ bool MtmRefreshClusterStatus(bool nowait)
1226
1226
MtmSwitchClusterMode (MTM_RECOVERY );
1227
1227
}
1228
1228
}else {
1229
- elog (WARNING ,"Clique %lx has no quorum" ,clique );
1229
+ elog (WARNING ,"Clique %lx has no quorum" ,( long ) clique );
1230
1230
MtmSwitchClusterMode (MTM_IN_MINORITY );
1231
1231
}
1232
1232
return true;
@@ -1236,12 +1236,12 @@ void MtmCheckQuorum(void)
1236
1236
{
1237
1237
if (Mtm -> nNodes < MtmNodes /2 + 1 ) {
1238
1238
if (Mtm -> status == MTM_ONLINE ) {/* out of quorum */
1239
- elog (WARNING ,"Node is in minority: disabled mask %lx" ,Mtm -> disabledNodeMask );
1239
+ elog (WARNING ,"Node is in minority: disabled mask %lx" ,( long ) Mtm -> disabledNodeMask );
1240
1240
MtmSwitchClusterMode (MTM_IN_MINORITY );
1241
1241
}
1242
1242
}else {
1243
1243
if (Mtm -> status == MTM_IN_MINORITY ) {
1244
- elog (WARNING ,"Node is in majority: dissbled mask %lx" ,Mtm -> disabledNodeMask );
1244
+ elog (WARNING ,"Node is in majority: dissbled mask %lx" ,( long ) Mtm -> disabledNodeMask );
1245
1245
MtmSwitchClusterMode (MTM_ONLINE );
1246
1246
}
1247
1247
}
@@ -2229,7 +2229,7 @@ MtmNoticeReceiver(void *i, const PGresult *res)
2229
2229
/* Strip "NOTICE: " from beginning and "\n" from end of error string */
2230
2230
strncpy (stripped_notice ,notice + 9 ,len - 1 - 9 );
2231
2231
2232
- elog (NOTICE ,stripped_notice );
2232
+ elog (NOTICE ,"%s" , stripped_notice );
2233
2233
pfree (stripped_notice );
2234
2234
}
2235
2235
@@ -2273,7 +2273,7 @@ static void MtmBroadcastUtilityStmt(char const* sql, bool ignoreError)
2273
2273
if (MtmGUCBufferAllocated && !MtmRunUtilityStmt (conns [i ],MtmGUCBuffer -> data ,& utility_errmsg )&& !ignoreError )
2274
2274
{
2275
2275
errorMsg = "Failed to set GUC variables at node %d" ;
2276
- elog (ERROR ,utility_errmsg );
2276
+ elog (NOTICE , "%s" ,utility_errmsg );
2277
2277
failedNode = i ;
2278
2278
break ;
2279
2279
}
@@ -2289,7 +2289,7 @@ static void MtmBroadcastUtilityStmt(char const* sql, bool ignoreError)
2289
2289
errorMsg = utility_errmsg ;
2290
2290
else
2291
2291
{
2292
- elog (ERROR ,utility_errmsg );
2292
+ elog (ERROR ,"%s" , utility_errmsg );
2293
2293
errorMsg = "Failed to run command at node %d" ;
2294
2294
}
2295
2295