From c55134fc0c5ebe952de12757d5c53d463a9c21b5 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 18 Feb 2010 10:28:06 +0000 Subject: 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 Signed-off-by: Anand V. Avati BUG: 639 (Data corruption with write-behind on server side) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=639 --- xlators/protocol/server/src/server-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/protocol') 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; -- cgit