milo: update cache when using transfer from storage
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
local Ansi = require('opus.ansi')
|
|
||||||
local Milo = require('milo')
|
local Milo = require('milo')
|
||||||
local Tasks = require('milo.taskRunner')
|
local Tasks = require('milo.taskRunner')
|
||||||
local UI = require('opus.ui')
|
local UI = require('opus.ui')
|
||||||
@@ -93,6 +92,11 @@ local function transfer(node)
|
|||||||
error(string.format('TRANSFER: target %s is not online', node.target))
|
error(string.format('TRANSFER: target %s is not online', node.target))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if target.mtype == 'storage' then
|
||||||
|
context.storage.dirty = true
|
||||||
|
target.adapter.dirty = true
|
||||||
|
end
|
||||||
|
|
||||||
for k in pairs(node.adapter.list()) do
|
for k in pairs(node.adapter.list()) do
|
||||||
tasks:add(function()
|
tasks:add(function()
|
||||||
node.adapter.pushItems(node.target, k)
|
node.adapter.pushItems(node.target, k)
|
||||||
|
|||||||
Reference in New Issue
Block a user