summaryrefslogtreecommitdiffstats
path: root/combox/events.py
diff options
context:
space:
mode:
Diffstat (limited to 'combox/events.py')
-rw-r--r--combox/events.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/combox/events.py b/combox/events.py
index 91be1a4..359aa03 100644
--- a/combox/events.py
+++ b/combox/events.py
@@ -188,6 +188,8 @@ class NodeDirMonitor(LoggingEventHandler):
self.config = config
self.silo = ComboxSilo(self.config, dblock)
+ self.num_nodes = len(get_nodedirs(self.config))
+
def shardp(self, path):
"""Returns True if `path' is a shard