summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-09-17 09:21:03 +0000
committerGerrit Code Review <review@openstack.org>2014-09-17 09:21:03 +0000
commit9b1e17420faf1210c653476c769f233ff779a112 (patch)
tree7485a41a46611e9ce20f9ce836774adfd39c4e45
parent07ec935900606ecc3cfe2e3b66e8fe286b24e4ad (diff)
parent84bb5fbef5c98bdee344ac9d9739f035bd9a8f7b (diff)
downloadtooz-9b1e17420faf1210c653476c769f233ff779a112.tar.gz
Merge "Change inline docs about class fake storage variable"
-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())