Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6ce43ab

Browse files
committed
add some comments and fixme's
1 parent64f29f3 commit6ce43ab

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

‎contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ static void MtmInitialize()
23742374
Mtm->nLiveNodes=0;//MtmNodes;
23752375
Mtm->nAllNodes=MtmNodes;
23762376
Mtm->disabledNodeMask=7;//XXXX
2377-
Mtm->clique=7;// XXXX
2377+
Mtm->clique=7;// XXXX ! should be inverted !
23782378
Mtm->stalledNodeMask=0;
23792379
Mtm->stoppedNodeMask=0;
23802380
Mtm->deadNodeMask=0;

‎contrib/mmts/pglogical_receiver.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,7 @@ pglogical_receiver_main(Datum main_arg)
366366
}
367367
if (n_deleted_slots==Mtm->nAllNodes-1)
368368
{
369-
elog(WARNING,"All neighbour nopes have no replication slot for us. Exiting.");
370-
kill(PostmasterPid,SIGTERM);
369+
elog(FATAL,"All neighbour nopes have no replication slot for us. Exiting.");
371370
}
372371
proc_exit(1);
373372
}

‎contrib/mmts/state.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ MtmCheckState(void)
143143

144144

145145
void
146-
MtmStateProcessNeighborEvent(intnode_id,MtmNeighborEventev)
146+
MtmStateProcessNeighborEvent(intnode_id,MtmNeighborEventev)// XXXX camelcase node_id
147147
{
148148
MTM_LOG1("[STATE] Node %i: %s",node_id,MtmNeighborEventMnem[ev]);
149149

@@ -402,7 +402,7 @@ MtmRefreshClusterStatus()
402402

403403
if (newClique!=trivialClique)
404404
{
405-
MTM_LOG1("[STATE] NONTRIVIAL CLIQUE!");
405+
MTM_LOG1("[STATE] NONTRIVIAL CLIQUE! (trivial: %s)",maskToString(trivialClique,Mtm->nAllNodes));// XXXX some false-positives, fixme
406406
}
407407

408408
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp