The deep-flatten feature bit is incorrectly used to determine
whether to set the object map to clean. It should use the
fast-diff feature bit.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
}
uint8_t state = OBJECT_EXISTS;
- if (m_image_ctx.test_features(RBD_FEATURE_DEEP_FLATTEN) &&
+ if (m_image_ctx.test_features(RBD_FEATURE_FAST_DIFF) &&
m_snap_id_idx + 1 < m_snap_ids.size()) {
state = OBJECT_EXISTS_CLEAN;
}
// verify the object map was properly updated
if ((ictx2->features & RBD_FEATURE_OBJECT_MAP) != 0) {
uint8_t state = OBJECT_EXISTS;
- if ((ictx2->features & RBD_FEATURE_DEEP_FLATTEN) != 0 &&
+ if ((ictx2->features & RBD_FEATURE_FAST_DIFF) != 0 &&
it != snaps.begin() && snap_name != NULL) {
state = OBJECT_EXISTS_CLEAN;
}