From: Tomas Vondra Date: Sat, 29 Jul 2017 16:51:55 +0000 (+0200) Subject: Fix confusing indentation in gtm_client.c X-Git-Tag: XL_10_R1BETA1~192 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=09765ec199f231ace0e1b4f4700c2b02d6bf3d3b;p=postgres-xl.git Fix confusing indentation in gtm_client.c GCC 6.3 complains that the indentation in gtm_sync_standby() is somewhat confusing, as it might mislead people to think that a command is part of an if branch. So fix that by removing the unnecessary indentation. --- diff --git a/src/gtm/client/gtm_client.c b/src/gtm/client/gtm_client.c index 4ac13faeb6..ce9845e975 100644 --- a/src/gtm/client/gtm_client.c +++ b/src/gtm/client/gtm_client.c @@ -2402,7 +2402,8 @@ gtm_sync_standby(GTM_Conn *conn) if (gtmpqFlush(conn)) goto send_failed; - finish_time = time(NULL) + CLIENT_GTM_TIMEOUT; + finish_time = time(NULL) + CLIENT_GTM_TIMEOUT; + if (gtmpqWaitTimed(true, false, conn, finish_time) || gtmpqReadData(conn) < 0) goto receive_failed;