]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: MDSMonitor: return if fs exists on 'fs new'
authorJoao Eduardo Luis <joao@redhat.com>
Fri, 17 Oct 2014 16:37:03 +0000 (17:37 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Fri, 17 Oct 2014 16:37:03 +0000 (17:37 +0100)
commit07b7f101057a80d1356bd20040180e94cd20c211
treeb38b28dc4d11490685d0d3b5d98e0d75d62ea57d
parenta9f302da08ab96128b28d85e2f566ad0f2ba2f30
mon: MDSMonitor: return if fs exists on 'fs new'

We were just setting return code to -EINVAL, while allowing the logic to
continue regardless.  If we are to return error, then we should abort
the operation as well and let the user know it went wrong instead of
continuing as if nothing had happened.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
src/mon/MDSMonitor.cc