Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mon/OSDMonitor.cc : set erasure-code-profile to "" when create replic…
…ated pools. when we create a pool specify a rule, for example "ceph osd pool create foo replicated 10 rule_foo", we will set pool foo erasure-code-profile to rule_foo, if there has an erasure-code-profile names rule_foo, use "ceph osd erasure-code-profile rule_foo" will fail, "Error EBUSY: foo pool(s) are using the erasure code profile 'rule_foo'", this is wrong. we should do: 1. set erasure-code-profile to "" when create replicated pools 2. whether erasure-code-profile is used by pool not only judge pool erasure_code_profile property and also the pool is_erasure Signed-off-by: zouaiguo <zou.aiguo@zte.com.cn>
- Loading branch information