]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
MDSMonitor: check for duplicated fs creation *before* multiple-fs creation 8073/head
authorGreg Farnum <gfarnum@redhat.com>
Fri, 11 Mar 2016 22:30:53 +0000 (14:30 -0800)
committerJohn Spray <john.spray@redhat.com>
Tue, 15 Mar 2016 13:22:20 +0000 (13:22 +0000)
commit980e017372d16b9782b2cb9b2282309d0b62564b
tree5c76be4fe2070e89a99b60d1381d6647627fd58f
parentbdcff151d2cd74eeadbc08e7c9317b4357feba01
MDSMonitor: check for duplicated fs creation *before* multiple-fs creation

If we check for creating an FS with one already existing first, we will
reject (with EINVAL) duplicate attempts to create the same FS with
the same params. That makes it non-idempotent, which is bad!

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/MDSMonitor.cc