projects
/
pgpool1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
809559a
)
Fix kind mismatch error in SimpleForwardToFrontend().
author
Yoshiyuki Asaba
<y-asaba at pgfoundry.org>
Wed, 10 May 2006 04:48:57 +0000
(
04:48
+0000)
committer
Yoshiyuki Asaba
<y-asaba at pgfoundry.org>
Wed, 10 May 2006 04:48:57 +0000
(
04:48
+0000)
pool_process_query.c
patch
|
blob
|
blame
|
history
diff --git
a/pool_process_query.c
b/pool_process_query.c
index 54da60f709cd4da6d5d77f6128197d19303615ec..b8b069ca9e4c32721673f6ea3a138622aedf94dc 100644
(file)
--- a/
pool_process_query.c
+++ b/
pool_process_query.c
@@
-2352,8
+2352,14
@@
POOL_STATUS SimpleForwardToFrontend(char kind, POOL_CONNECTION *frontend, POOL_C
return POOL_END;
if (REPLICATION)
- if (pool_read2(SECONDARY(backend), len) == NULL)
+ {
+ len1 = ntohl(len1) - 4;
+ if (len1 <= 0)
+ return POOL_CONTINUE;
+
+ if (pool_read2(SECONDARY(backend), len1) == NULL)
return POOL_END;
+ }
if (pool_write(frontend, p, len))
return POOL_END;