[sheepdog] [PATCH] objlist cache: init lock vairable

Liu Yuan namei.unix at gmail.com
Tue Jun 26 14:26:02 CEST 2012


On 06/26/2012 11:11 AM, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/object_list_cache.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sheep/object_list_cache.c b/sheep/object_list_cache.c
> index 87ee056..e2fffc1 100644
> --- a/sheep/object_list_cache.c
> +++ b/sheep/object_list_cache.c
> @@ -38,6 +38,7 @@ struct objlist_cache {
>  struct objlist_cache obj_list_cache = {
>  	.tree_version	= 1,
>  	.root		= RB_ROOT,
> +	.lock		= PTHREAD_RWLOCK_INITIALIZER,
>  };
>  
>  static struct objlist_cache_entry *objlist_cache_rb_insert(struct rb_root *root,
> 

Applied.

Thanks,
Yuan




More information about the sheepdog mailing list