From f15ce63ba11ad101349ee51a0baa4109400d7329 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Wed, 8 Apr 2015 17:18:33 -0400 Subject: After a file which was created a in a remote computer is reconstructed in this computer, its info is removed from the 'file_created' dictionary in the silo. modified: combox/events.py modified: tests/events_test.py --- combox/events.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'combox/events.py') diff --git a/combox/events.py b/combox/events.py index efdbc53..609ed8e 100644 --- a/combox/events.py +++ b/combox/events.py @@ -311,6 +311,7 @@ class NodeDirMonitor(LoggingEventHandler): if num == self.num_nodes: os.mkdir(file_cb_path) + self.silo.node_rem('file_created', file_cb_path) elif (not event.is_directory) and (not path.exists(file_cb_path)): # shard created. @@ -324,6 +325,7 @@ class NodeDirMonitor(LoggingEventHandler): decrypt_and_glue(file_cb_path, self.config) # update db. self.silo.update(file_cb_path) + self.silo.node_rem('file_created', file_cb_path) def on_deleted(self, event): -- cgit v1.2.3