mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
tools: COT ignores fsid mismatch when importing PG with --force
Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
This commit is contained in:
parent
b76b6ea168
commit
d28a853a33
@ -1806,7 +1806,11 @@ int ObjectStoreTool::do_import(ObjectStore *store, OSDSuperblock& sb,
|
||||
&& pgb.superblock.cluster_fsid != sb.cluster_fsid) {
|
||||
cerr << "Export came from different cluster with fsid "
|
||||
<< pgb.superblock.cluster_fsid << std::endl;
|
||||
return -EINVAL;
|
||||
if (force) {
|
||||
cerr << "Ignoring this problem due to --force" << std::endl;
|
||||
} else {
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
if (debug) {
|
||||
|
Loading…
Reference in New Issue
Block a user