From 6bc6c1eecc8a34ab80dc4c6e4db8ab40e6ad4712 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Fri, 1 May 2015 09:35:54 -0400 Subject: added comments in combox.events.NodDirMonitor.housekeep method. --- combox/events.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/combox/events.py b/combox/events.py index e15ea70..1969a85 100644 --- a/combox/events.py +++ b/combox/events.py @@ -247,6 +247,9 @@ class NodeDirMonitor(LoggingEventHandler): self.silo.remove(fpath) self.silo.node_rem('file_deleted', fpath) elif del_num > 0: + # means, all the shards of the file have not been + # deleted yet, so, we store the no. of shards was + # deleted in the 'file_deleted' dict inside the silo. self.silo.node_set('file_deleted', fpath, del_num) for root, dirs, files in os.walk(get_nodedirs(self.config)[0]): -- cgit v1.2.3