bigplum / lua-resty-mongol

A ngx_lua driver for mongodb -- Deprecated for not updating with the mongodb version
198 stars 67 forks source link

the driver can not use in context ngx.timer #47

Open BloodyKnight opened 8 years ago

BloodyKnight commented 8 years ago

when use the lua-resty-mongol in ngx.timer context, a error occured as follows:resty/mongol/object_id.lua:56: API disabled in the current context, context: ngx.timer, the reason is the ngx.var.pid can not use in ngx.timer context, and at last I use ngx.worker.pid() instead.