Content-Length: 259474 | pFad | http://github.com/postgrespro/mmts/commit/dceff14aa025cfd68f145d6a52f107e651d8124e

80 Multimaster init_cluster() with empty nodes list: replace assertion w… · postgrespro/mmts@dceff14 · GitHub
Skip to content

Commit dceff14

Browse files
Andrei KrichininMikhail Rutman
authored andcommitted
Multimaster init_cluster() with empty nodes list: replace assertion with error report.
Tags: multimaster.
1 parent ef0c766 commit dceff14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/multimaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,8 @@ mtm_init_cluster(PG_FUNCTION_ARGS)
933933

934934
/* parse array with peer connstrings */
935935
Assert(ARR_ELEMTYPE(peers_arr) == TEXTOID);
936-
Assert(ARR_NDIM(peers_arr) == 1);
936+
if (ARR_NDIM(peers_arr) != 1)
937+
mtm_log(ERROR, "node list should not be empty");
937938
deconstruct_array(peers_arr,
938939
TEXTOID, -1, false, 'i',
939940
&peers_datums, &peers_nulls, &n_peers);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/mmts/commit/dceff14aa025cfd68f145d6a52f107e651d8124e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy