summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-transport.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-02-23 09:34:30 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-02-28 23:40:36 -0800
commit46c69ec62db97c52c5e8e42e23cf440f742e033e (patch)
tree425ac9d902281cec16fb253fb5c7a72dcd7c0541 /rpc/rpc-lib/src/rpc-transport.c
parentc46f85b026a1d0ad90f7be0efa4cd380962a1741 (diff)
rpcsvc: Handle more than one payload vectors.
- fops like write can recieve payload data in more than one vector. This can happen with write-behind being loaded on client side. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2454 (rdma data corruption) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2454
Diffstat (limited to 'rpc/rpc-lib/src/rpc-transport.c')
-rw-r--r--rpc/rpc-lib/src/rpc-transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c
index 61e31e903..e7ffb065f 100644
--- a/rpc/rpc-lib/src/rpc-transport.c
+++ b/rpc/rpc-lib/src/rpc-transport.c
@@ -537,7 +537,7 @@ rpc_transport_pollin_alloc (rpc_transport_t *this, struct iovec *vector,
goto out;
}
- if (count == 2) {
+ if (count > 1) {
msg->vectored = 1;
}