[sheepdog-users] [PATCH stable-0.7 4/4] sheep: let init_vdi_state() return correct value

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Tue Dec 17 09:52:40 CET 2013


Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 sheep/plain_store.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sheep/plain_store.c b/sheep/plain_store.c
index 8265b29..6a54b60 100644
--- a/sheep/plain_store.c
+++ b/sheep/plain_store.c
@@ -196,7 +196,7 @@ static int init_vdi_state(uint64_t oid, char *wd, uint32_t epoch)
 	ret = SD_RES_SUCCESS;
 out:
 	free(inode);
-	return SD_RES_SUCCESS;
+	return ret;
 }
 
 static int init_objlist_and_vdi_bitmap(uint64_t oid, char *wd, uint32_t epoch,
-- 
1.7.10.4




More information about the sheepdog-users mailing list