mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
datacenterd query接口查询时,当db为nil时,终止递归 (#2006)
This commit is contained in:
@@ -6,7 +6,7 @@ local wait_queue = {}
|
|||||||
local mode = {}
|
local mode = {}
|
||||||
|
|
||||||
local function query(db, key, ...)
|
local function query(db, key, ...)
|
||||||
if key == nil then
|
if db == nil or key == nil then
|
||||||
return db
|
return db
|
||||||
else
|
else
|
||||||
return query(db[key], ...)
|
return query(db[key], ...)
|
||||||
|
|||||||
Reference in New Issue
Block a user