diff options
| author | Michael P | 2012-04-20 00:33:19 +0000 |
|---|---|---|
| committer | Michael P | 2012-04-20 00:33:19 +0000 |
| commit | c8039d89b42944f722d76c858b790e18201dfb98 (patch) | |
| tree | 9af4080f0fb6863254a89f35b6e4b0fe57e02844 /src | |
| parent | 8d8c58f7265d7fc6e51671a20500a7ea12a9a64e (diff) | |
Remove warning message in gtm_snap.c
A boolean used only on GTM Proxy was stored on GTM side also
even if it was not used at all, so consume the byte and bypass
its save.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtm/main/gtm_snap.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gtm/main/gtm_snap.c b/src/gtm/main/gtm_snap.c index e0b0ec8064..c2de142a47 100644 --- a/src/gtm/main/gtm_snap.c +++ b/src/gtm/main/gtm_snap.c @@ -282,17 +282,15 @@ ProcessGetSnapshotCommand(Port *myport, StringInfo message, bool get_gxid) int isgxid = 0; GTM_Snapshot snapshot; MemoryContext oldContext; - bool canbe_grouped; int status; int txn_count = 1; /* - * This is used by the GTM proxy to decide whether to group this snapshot - * request with some other snapshot request from some other backend. - * - * This is mostly useless for the GTM server. - */ - canbe_grouped = pq_getmsgbyte(message); + * Here we consume a byte which is a boolean to determine if snapshot can + * be grouped or not. This is used only by GTM-Proxy and it is useless for GTM + * so consume data. + */ + pq_getmsgbyte(message); isgxid = pq_getmsgbyte(message); |
