[sheepdog] [PATCH] sheep: let init_vdi_state() return correct value
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Mon Dec 16 12:16:11 CET 2013
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
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 02db25e..f0e2c20 100644
--- a/sheep/plain_store.c
+++ b/sheep/plain_store.c
@@ -221,7 +221,7 @@ static int init_vdi_state(uint64_t oid, const 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, const char *wd,
--
1.7.10.4
More information about the sheepdog
mailing list