bdr: Fix typo causing the send/recv not to be used even though version's match
authorAndres Freund <andres@anarazel.de>
Thu, 20 Mar 2014 21:12:52 +0000 (22:12 +0100)
committerAndres Freund <andres@anarazel.de>
Thu, 3 Jul 2014 15:55:21 +0000 (17:55 +0200)
Found in respond to tests by Christian.

contrib/bdr/bdr_output.c

index 12f5ef9fa5ebb41b4798f76771e8a5a87a8ed587..5bea762669cd891e9869b65b5e75a52cb3cb4407 100644 (file)
@@ -286,7 +286,7 @@ pg_decode_startup(LogicalDecodingContext * ctx, OutputPluginOptions *opt, bool i
         * XXX: We could easily do better by doing per datatype considerations
         * if there are known incompatibilities.
         */
-       if (data->client_pg_version / 100 == PG_VERSION_NUM / 100)
+       if (data->client_pg_version / 100 != PG_VERSION_NUM / 100)
            data->allow_sendrecv_protocol = false;
    }
 }