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

Commitb3a0c79

Browse files
kvapkelvich
authored andcommitted
Add MtmNodeId range check.
1 parentb3225a3 commitb3a0c79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎multimaster.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,10 @@ static void MtmSplitConnStrs(void)
18691869
}
18701870
if (i>MAX_NODES) {
18711871
elog(ERROR,"Multimaster with more than %d nodes is not currently supported",MAX_NODES);
1872-
}
1872+
}
1873+
if (MtmNodeId>i) {
1874+
elog(ERROR,"Multimaster node id %d is out of range [%d..%d]",MtmNodeId,1,i);
1875+
}
18731876
if (i<2) {
18741877
elog(ERROR,"Multimaster should have at least two nodes");
18751878
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp