mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
locking: Fix flags in virLockManagerLockDaemonNew
virLockManager*New APIs are never called with
VIR_LOCK_MANAGER_USES_STATE. Moreover, lockd driver does not maintain
any state that would need to be transferred during migration and thus it
should not mention VIR_LOCK_MANAGER_USES_STATE at all.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
(cherry picked from commit 6beb75d96d
)
This commit is contained in:
parent
bb1018f6b2
commit
a065bb0fe6
@ -439,7 +439,7 @@ static int virLockManagerLockDaemonNew(virLockManagerPtr lock,
|
||||
virLockManagerLockDaemonPrivatePtr priv;
|
||||
size_t i;
|
||||
|
||||
virCheckFlags(VIR_LOCK_MANAGER_USES_STATE, -1);
|
||||
virCheckFlags(0, -1);
|
||||
|
||||
if (VIR_ALLOC(priv) < 0)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user