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