]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kv/MemDB: fix MemDB::_init()
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jul 2016 10:56:41 +0000 (18:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 14 Jul 2016 11:34:07 +0000 (19:34 +0800)
commit80b398b7f6a2843eb097b83fc52385690ddc7eb4
tree7c25ac04adc18c7b118b934a5b626c3e10622efb
parent20def20fda4d3153629847e971db1d2feaab8ce7
kv/MemDB: fix MemDB::_init()

1. mkdir() returns zero on success, or -1 if an error
   occurred (in which case, errno is set appropriately).
2. we shall return the proper error result to caller on failure.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/kv/MemDB.cc