]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
conflict reconciliation (part 1, stats gathering in helper)
authorrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 28 Mar 2008 00:25:16 +0000 (17:25 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Fri, 28 Mar 2008 00:25:16 +0000 (17:25 -0700)
src/allmydata/offloaded.py

index 00b2ee9c28a76c0d4281df80b66bba1e570428b0..751c94b111a7930509d6ca0e4308a92bf00c2933 100644 (file)
@@ -474,6 +474,14 @@ class Helper(Referenceable, service.MultiService):
         fileutil.make_dirs(self._chk_incoming)
         fileutil.make_dirs(self._chk_encoding)
         self._active_uploads = {}
+        if stats_provider:
+            stats_provider.register_producer(self)
+        self._stats = {"CHK_upload_requests": 0,
+                       "CHK_upload_already_present": 0,
+                       "CHK_upload_need_upload": 0,
+                       "CHK_fetched_bytes": 0,
+                       "CHK_encoded_bytes": 0,
+                       }
         service.MultiService.__init__(self)
 
     def setServiceParent(self, parent):