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
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters