]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/librbd/operation/FlattenRequest.cc
update sources to 12.2.10
[ceph.git] / ceph / src / librbd / operation / FlattenRequest.cc
index 78cca8d38dc55024f6ffdd063c6eee378b5587cd..35c947c044362ff98790dc4f465e9367ebc30540 100644 (file)
@@ -130,7 +130,7 @@ bool FlattenRequest<I>::send_update_header() {
     RWLock::RLocker parent_locker(image_ctx.parent_lock);
     // stop early if the parent went away - it just means
     // another flatten finished first, so this one is useless.
-    if (!image_ctx.parent) {
+    if (image_ctx.parent_md.spec.pool_id == -1) {
       ldout(cct, 5) << "image already flattened" << dendl;
       return true;
     }