Reported-by: Ruoyu <lian...@ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hito...@lab.ntt.co.jp>
---
 sheep/vdi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sheep/vdi.c b/sheep/vdi.c
index 4683878..9db38c4 100644
--- a/sheep/vdi.c
+++ b/sheep/vdi.c
@@ -350,7 +350,7 @@ static bool add_new_participant(struct vdi_state_entry 
*entry,
                return true;
        }
 
-       assert(entry->lock_state == LOCK_STATE_UNLOCKED);
+       assert(entry->lock_state == LOCK_STATE_SHARED);
        assert(0 < entry->nr_participants);
 
        if (entry->nr_participants == SD_MAX_COPIES) {
-- 
1.8.3.2

-- 
sheepdog mailing list
sheepdog@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to