summaryrefslogtreecommitdiffstats
path: root/src/librbd/operation/FlattenRequest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/librbd/operation/FlattenRequest.cc')
-rw-r--r--src/librbd/operation/FlattenRequest.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/librbd/operation/FlattenRequest.cc b/src/librbd/operation/FlattenRequest.cc
index 7bc34681924..8034637e8e6 100644
--- a/src/librbd/operation/FlattenRequest.cc
+++ b/src/librbd/operation/FlattenRequest.cc
@@ -49,15 +49,6 @@ public:
return -ERESTART;
}
- {
- std::shared_lock image_lock{image_ctx.image_lock};
- if (image_ctx.object_map != nullptr &&
- !image_ctx.object_map->object_may_not_exist(m_object_no)) {
- // can skip because the object already exists
- return 1;
- }
- }
-
if (!io::util::trigger_copyup(
&image_ctx, m_object_no, m_io_context, this)) {
// stop early if the parent went away - it just means