]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: MonitorStore: fix error checks for mkdir operations
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 17 Oct 2012 20:21:01 +0000 (21:21 +0100)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 17 Oct 2012 20:22:07 +0000 (21:22 +0100)
commit1fc18c46816caf69365c6ce136e93424e3d4009d
treed2c356065c414078314c375ed167764cee877216
parente8df212ba7ccd77980f5ef3590f2c2ab7b7c2f36
mon: MonitorStore: fix error checks for mkdir operations

We introduced a bug on the monitor store a couple of commits back that
would trigger a EEXIST error message when the store tried to make sure
a directory exists by trying to 'mkdir' it.

We now check if 'errno' is EEXIST and, if so, we ignore the error.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/MonitorStore.cc