diff --git a/.travis.yml b/.travis.yml index c3955b1..a92cf9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,6 +38,7 @@ install: - sudo cpanm --notest Test::Nginx > build.log 2>&1 || (cat build.log && exit 1) - wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz - git clone https://github.com/openresty/openresty.git ../openresty + - git clone https://github.com/openresty/lua-resty-core.git ../lua-resty-core - git clone https://github.com/openresty/nginx-devel-utils.git - git clone https://github.com/simpl/ngx_devel_kit.git ../ndk-nginx-module - git clone https://github.com/openresty/lua-nginx-module.git ../lua-nginx-module diff --git a/README.markdown b/README.markdown index 2b06718..75395bf 100644 --- a/README.markdown +++ b/README.markdown @@ -43,7 +43,7 @@ Synopsis http { # you do not need the following line if you are using the # OpenResty bundle: - lua_package_path "/path/to/lua-resty-lock/lib/?.lua;;"; + lua_package_path "/path/to/lua-resty-core/lib/?.lua;/path/to/lua-resty-lock/lib/?.lua;;"; lua_shared_dict my_locks 100k; @@ -152,6 +152,8 @@ Common errors for this method call is Other possible errors are from ngx_lua's shared dictionary API. +It is required to create different `resty.lock` instances for multiple simultaneous locks (i.e., those around different keys). + [Back to TOC](#table-of-contents) unlock