we'd better validate the snap context right after we got the mutable
metadata before we could go any further
Signed-off-by: runsisi <runsisi@zte.com.cn>
(cherry picked from commit
ca8ae66ba42e7a598ad23ed911938589dc288456)
return m_on_finish;
}
+ if (!m_snapc.is_valid()) {
+ lderr(cct) << "image snap context is invalid!" << dendl;
+ *result = -EIO;
+ return m_on_finish;
+ }
+
send_v2_get_flags();
return nullptr;
}
return m_on_finish;
}
- if (!m_snapc.is_valid()) {
- lderr(cct) << "image snap context is invalid!" << dendl;
- *result = -EIO;
- return m_on_finish;
- }
-
return send_v2_refresh_parent();
}