Re-add incorrectly removed call to consume txn_count during compiler warning
authorPavan Deolasee <[email protected]>
Tue, 15 Mar 2016 06:30:52 +0000 (12:00 +0530)
committerPavan Deolasee <[email protected]>
Tue, 15 Mar 2016 06:30:52 +0000 (12:00 +0530)
cleanups

src/gtm/proxy/proxy_main.c

index 5c0eefb14931279dc13aff4e36a7ce8fa7b862a2..871280fa89be2654c3f3c335b0bf0fd3addeeda0 100644 (file)
@@ -2163,7 +2163,10 @@ ProcessSnapshotCommand(GTMProxy_ConnectionInfo *conninfo, GTM_Conn *gtm_conn,
                case MSG_SNAPSHOT_GET_MULTI:
                        {
                                {
-                                       const char *data = pq_getmsgbytes(message,
+                                       const char *data;
+
+                                       (void) pq_getmsgint(message, sizeof (int));
+                                       data = pq_getmsgbytes(message,
                                                        sizeof (GlobalTransactionId));
                                        if (data == NULL)
                                                ereport(ERROR,