[sheepdog] [PATCH] sheep: fix an incorrect assertion

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Thu Aug 7 07:34:27 CEST 2014


Reported-by: Ruoyu <liangry at ucweb.com>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at 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




More information about the sheepdog mailing list