datacenterd query接口查询时,当db为nil时,终止递归 (#2006)

This commit is contained in:
851773277
2024-12-09 19:51:37 +08:00
committed by GitHub
parent 2fc8e86925
commit cada3f5cb0

View File

@@ -6,7 +6,7 @@ local wait_queue = {}
local mode = {}
local function query(db, key, ...)
if key == nil then
if db == nil or key == nil then
return db
else
return query(db[key], ...)