Skip to content

Commit

Permalink
[bugfix] find key by prefix, append ':' into prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhendong committed Oct 14, 2018
1 parent 2aed1d4 commit 834e8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/abtesting/adapter/policy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _M.del = function(self, id)
local database = self.database
local baseLibrary = self.baseLibrary

local policyLib = baseLibrary .. ':' .. id
local policyLib = baseLibrary .. ':' .. id .. ':'

local keys, err = database:keys(policyLib..'*')
if not keys then
Expand Down

0 comments on commit 834e8af

Please sign in to comment.