summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-09-16 17:01:33 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2014-09-16 17:03:06 -0700
commit84bb5fbef5c98bdee344ac9d9739f035bd9a8f7b (patch)
treeaae14c4499df051f042fa82106e9843e868320df
parentc5e1c3f96f016c9ddfff8206d1bebeaf4ea44e6c (diff)
downloadtooz-84bb5fbef5c98bdee344ac9d9739f035bd9a8f7b.tar.gz
Change inline docs about class fake storage variable
Adjust the docs to better describe why a fake storage class attribute exists and how it is used and what it represents compared to a real zookeeper setup. Change-Id: I255ccd83c8033266e9cee09a343468ae4e0f2bfd
-rw-r--r--tooz/drivers/zake.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tooz/drivers/zake.py b/tooz/drivers/zake.py
index deb4430..1909a43 100644
--- a/tooz/drivers/zake.py
+++ b/tooz/drivers/zake.py
@@ -25,7 +25,11 @@ class ZakeDriver(zookeeper.KazooDriver):
without the need of real ZooKeeper servers.
"""
- # here we need to pass *threading handler* as an argument
+ # NOTE(harlowja): this creates a shared backend 'storage' layer that
+ # would typically exist inside a zookeeper server, but since zake has
+ # no concept of a 'real' zookeeper server we create a fake one and share
+ # it among active clients to simulate zookeeper's consistent storage in
+ # a thread-safe manner.
fake_storage = fake_storage.FakeStorage(
fake_client.k_threading.SequentialThreadingHandler())