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:40:20 -0800
commitc55134fc0c5ebe952de12757d5c53d463a9c21b5 (patch)
treead209e23e54cf0c02d93a0af188c699e3d635321 /xlators
parent90a52d538d49738f2f61dcd45f15e4db76aa1296 (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 6603ea42c43..c3b8d31d6d8 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;