mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +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 6beb75d96dc596047aedaa9e79d81a042364626a)
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…
x
Reference in New Issue
Block a user