]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix idempotent FS creation 23529/head
authorJohn Spray <john.spray@redhat.com>
Thu, 9 Aug 2018 11:03:51 +0000 (07:03 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 10 Aug 2018 10:25:05 +0000 (06:25 -0400)
commit9d4d2ccc1a46346b10d5ee820a6bd992ed56fe23
tree2a3758abc8e3660198dcb076e4ba7297a0efccaa
parent50f7f7e32eca98820d4541e3b5f8d60625296b0a
mon: fix idempotent FS creation

In the case that our creation is a no-op, we should tolerate
objects in the metadata pool -- since we're not performing
any action, we can't do harm.

This case comes up if you have MDS daemons starting immediately
on filesystem creation: running the `fs new` command twice will fail
the second time because of the objects the MDS created.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/FSCommands.cc