mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
librbd: deep-copy should remove parent metadata if overlap updated
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
f73c7ba0b2
commit
af4298464d
@ -102,7 +102,8 @@ template <typename I>
|
||||
void SetHeadRequest<I>::send_remove_parent() {
|
||||
m_image_ctx->parent_lock.get_read();
|
||||
if (m_image_ctx->parent_md.spec.pool_id == -1 ||
|
||||
m_image_ctx->parent_md.spec == m_parent_spec) {
|
||||
(m_image_ctx->parent_md.spec == m_parent_spec &&
|
||||
m_image_ctx->parent_md.overlap == m_parent_overlap)) {
|
||||
m_image_ctx->parent_lock.put_read();
|
||||
send_set_parent();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user