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

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


At Thu,  7 Aug 2014 14:34:27 +0900,
Hitoshi Mitake wrote:
> 
> 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(-)

Applied.

Thanks,
Hitoshi

> 
> 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