summaryrefslogtreecommitdiffstats
path: root/acf/transaction/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/transaction/init.lua')
-rw-r--r--acf/transaction/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/acf/transaction/init.lua b/acf/transaction/init.lua
index 0afad48..ec83aae 100644
--- a/acf/transaction/init.lua
+++ b/acf/transaction/init.lua
@@ -53,7 +53,7 @@ function Transaction:check()
if not self.backend then error('Transaction already committed') end
end
-function Transaction:get(path)
+function Transaction:get(path, t)
self:check()
if self.deleted[path] then return nil, self.mod_time[path] end
@@ -63,7 +63,7 @@ function Transaction:get(path)
end
end
- local value, timestamp = self.backend:get_if_older(path, self.started)
+ local value, timestamp = self.backend:get_if_older(path, self.started, t)
self.access_time[path] = timestamp
return value, timestamp
end
@@ -84,7 +84,7 @@ function Transaction:_set_multiple(mods)
local path, t, value = unpack(mod)
local ppath = pth.parent(path)
- local parent = self:get(ppath)
+ local parent = self:get(ppath, 'table')
if parent == nil then
self:set(ppath, 'table', true)
parent = {}