summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/iobuf.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-10-03 15:41:04 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-10 03:57:10 -0700
commit18071a240bd4c0d92f583632a7cdef1cd32bbe62 (patch)
tree6375ce6cfc20905d35ee6c04a17814545e3b46fd /libglusterfs/src/iobuf.h
parent33ac0c6b48ccbaf357644710c804e55bdfdb12da (diff)
downloadglusterfs-18071a240bd4c0d92f583632a7cdef1cd32bbe62.tar.gz
glusterfs-18071a240bd4c0d92f583632a7cdef1cd32bbe62.tar.xz
glusterfs-18071a240bd4c0d92f583632a7cdef1cd32bbe62.zip
libglusterfs/iobuf: increase the iobref's iobuf array size
earlier it was hardcoded to 8, now increased the size to 16. also return the exact error code in client_submit_vec_request(), so there will be no missing frames in case of errors. Change-Id: I82a6ee681a543b673a7cf1a0b9c5ade2a7175ebe BUG: 3679 Reviewed-on: http://review.gluster.com/555 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'libglusterfs/src/iobuf.h')
-rw-r--r--libglusterfs/src/iobuf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/iobuf.h b/libglusterfs/src/iobuf.h
index 992ded8f49..efceb2d05b 100644
--- a/libglusterfs/src/iobuf.h
+++ b/libglusterfs/src/iobuf.h
@@ -27,6 +27,7 @@
#include <sys/uio.h>
#define GF_VARIABLE_IOBUF_COUNT 32
+#define GF_IOBREF_IOBUF_COUNT 16
/* Lets try to define the new anonymous mapping
* flag, in case the system is still using the
@@ -141,7 +142,7 @@ void iobuf_to_iovec(struct iobuf *iob, struct iovec *iov);
struct iobref {
gf_lock_t lock;
int ref;
- struct iobuf *iobrefs[8];
+ struct iobuf *iobrefs[GF_IOBREF_IOBUF_COUNT];
};
struct iobref *iobref_new ();