[Sheepdog] [PATCH 07/14] set return value in all cases

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sat May 14 09:03:52 CEST 2011


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sheep/store.c b/sheep/store.c
index 6b31267..5043e7e 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -845,10 +845,10 @@ out:
 	if (ret != SD_RES_SUCCESS) {
 		dprintf("failed, %"PRIu32", %x, %" PRIx64" , %u, %"PRIu32"\n",
 			idx, opcode, oid, epoch, ret);
-		rsp->result = ret;
 		if (!(ret == SD_RES_NO_OBJ && hdr->flags & SD_FLAG_CMD_RECOVERY))
 			rsp->data_length = 0;
 	}
+	rsp->result = ret;
 }
 
 int epoch_log_write(uint32_t epoch, char *buf, int len)
-- 
1.5.6.5




More information about the sheepdog mailing list