From f3c1a77d7a4814f3dd3be5dae6d530471a8d58a5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 18 Oct 2014 00:32:21 +0200 Subject: moved to resty-lock for fetch --- src/daq/nginx-lua/s5-nginx-log.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daq/nginx-lua/s5-nginx-log.lua') diff --git a/src/daq/nginx-lua/s5-nginx-log.lua b/src/daq/nginx-lua/s5-nginx-log.lua index daad0f4..43d2394 100644 --- a/src/daq/nginx-lua/s5-nginx-log.lua +++ b/src/daq/nginx-lua/s5-nginx-log.lua @@ -88,8 +88,8 @@ if status == '200' or status == '206' then json = json .. '"bytes_sent": ' .. ngx.var.bytes_sent json = json .. '}' - local sfive_log = ngx.shared.sfive_log - local ok, err, force = sfive_log:add(idx, json, log_exptime) + local sfive_data = ngx.shared.sfive_data + local ok, err, force = sfive_data:add(idx, json, log_exptime) if not ok then ngx.log(ngx.ERR, "SFive(log): adding log line (".. idx .. ") to log store failed: " .. err) elseif force then -- cgit v1.2.3