The is_pg() call is now true even for pgs pending removal, fix broken
finish_remove_pgs() by removing is_pg() check.
Need to add create_collection() to the initial transaction on import
Fixes: #10090
Signed-off-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
5ce09198bf475e5c3a2df26232fa04ba9912b103)
Conflicts:
src/tools/ceph_objectstore_tool.cc
it != ls.end();
++it) {
spg_t pgid;
- snapid_t snap;
if (it->is_temp(pgid)) {
cout << "finish_remove_pgs " << *it << " clearing temp" << std::endl;
continue;
}
- if (it->is_pg(pgid, snap)) {
- continue;
- }
-
uint64_t seq;
if (it->is_removal(&seq, &pgid)) {
if (seq >= *next_removal_seq)