summaryrefslogtreecommitdiffstats
path: root/aconf/persistence/init.lua
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-02-09 19:44:12 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2015-02-12 16:32:41 +0200
commit29282b5a7d43e8b5ce12b0ec4b7a7620c19a67b6 (patch)
treea8ad7d5343c41950ff9c8f96a55f41a80271f72a /aconf/persistence/init.lua
parent07a0eb180872401b271de40190603df8f3ab3db2 (diff)
downloadaconf-29282b5a7d43e8b5ce12b0ec4b7a7620c19a67b6.tar.bz2
aconf-29282b5a7d43e8b5ce12b0ec4b7a7620c19a67b6.tar.xz
proper escaping for back-end addresses
Diffstat (limited to 'aconf/persistence/init.lua')
-rw-r--r--aconf/persistence/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/aconf/persistence/init.lua b/aconf/persistence/init.lua
index d95da2d..8056c16 100644
--- a/aconf/persistence/init.lua
+++ b/aconf/persistence/init.lua
@@ -1,12 +1,12 @@
--[[
-Copyright (c) 2012-2014 Kaarle Ritvanen
+Copyright (c) 2012-2015 Kaarle Ritvanen
See LICENSE file for license details
--]]
local loadmods = require('aconf.loader')
local topology = require('aconf.model.root').topology
local object = require('aconf.object')
-local pth = require('aconf.path')
+local address = require('aconf.path.address')
local util = require('aconf.util')
local contains = util.contains
@@ -34,7 +34,7 @@ function DataStore:trigger(phase, path, func)
end
function DataStore:split_path(path)
- local comps = pth.split(path)
+ local comps = address.split(path)
local backend = self.backends[comps[1]]
assert(backend)
table.remove(comps, 1)
@@ -93,7 +93,7 @@ function DataStore:_set_multiple(mods)
local tp = path
while not trigger[tp] do
trigger[tp] = true
- tp = pth.parent(tp)
+ tp = address.parent(tp)
end
local backend, comps = self:split_path(path)