bdr: in get_worker_option removal, it helps to increment the counter
authorCraig Ringer <[email protected]>
Wed, 30 Apr 2014 12:21:37 +0000 (20:21 +0800)
committerAndres Freund <[email protected]>
Thu, 3 Jul 2014 15:55:29 +0000 (17:55 +0200)
Failure to increment the loop counter led to >2 node configurations failing.

contrib/bdr/bdr.c

index e78069b394a1af0aaa6299366b874b103f29605b..806d0f6750ed435ef245ccca40a3333765247b70 100644 (file)
@@ -1502,6 +1502,7 @@ _PG_init(void)
            continue;
 
        Assert(bdr_connection_configs[connection_config_idx] != NULL);
+       connection_config_idx++;
    }
 
    /*