mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
Merge pull request #11559 from dillaman/wip-17618
librbd: exclusive lock incorrectly initialized when switching to head revision Reviewed-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
commit
7b7d0984f0
@ -56,7 +56,8 @@ void SetSnapRequest<I>::send_init_exclusive_lock() {
|
||||
}
|
||||
}
|
||||
|
||||
if (!m_image_ctx.test_features(RBD_FEATURE_EXCLUSIVE_LOCK)) {
|
||||
if (m_image_ctx.read_only ||
|
||||
!m_image_ctx.test_features(RBD_FEATURE_EXCLUSIVE_LOCK)) {
|
||||
int r = 0;
|
||||
if (send_refresh_parent(&r) != nullptr) {
|
||||
send_complete();
|
||||
|
Loading…
Reference in New Issue
Block a user