Signed-off-by: MORITA Kazutaka <[email protected]>
---
 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

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to