summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-02-18 10:28:06 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-18 08:39:59 -0800
commit23fe45312765c1af8788aa103c51703a2fc28220 (patch)
tree87f5c6ff9b798746cbcfcd5b8a29956a1d7c66e5 /xlators
parentf823b85d80bd2c9563a7a9d8762ea668dee13176 (diff)
server_writev: add proper iobuf into iobref
this typo results in corruption when write-behind is loaded on server side Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 639 (Data corruption with write-behind on server side) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=639
Diffstat (limited to 'xlators')
-rw-r--r--xlators/protocol/server/src/server-protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index 6603ea42c..c3b8d31d6 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -3099,7 +3099,7 @@ server_writev (call_frame_t *frame, xlator_t *bound_xl,
if (iobuf) {
iobref = iobref_new ();
- iobref_add (iobref, state->iobuf);
+ iobref_add (iobref, iobuf);
state->iobuf = iobuf;
state->iobref = iobref;