Browse Source

[2964] updated comments on DataSrcClientsMgr.__map_lock

JINMEI Tatuya 12 years ago
parent
commit
c269cdc11c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/lib/python/isc/server_common/datasrc_clients_mgr.py

+ 4 - 2
src/lib/python/isc/server_common/datasrc_clients_mgr.py

@@ -54,8 +54,10 @@ class DataSrcClientsMgr:
 
 
         # Map from RRClass to ConfigurableClientList.  Resetting this map
         # Map from RRClass to ConfigurableClientList.  Resetting this map
         # is protected by __map_lock.  Note that this lock doesn't protect
         # is protected by __map_lock.  Note that this lock doesn't protect
-        # "updates" of the map content.  __clients_map shouldn't be accessed
-        # by class users directly.
+        # "updates" of the map content (currently it's not a problem, but
+        # if and when we support more operations such as reloading
+        # particular zones in in-memory cache, remember that there will have
+        # to be an additional layer of protection).
         self.__clients_map = {}
         self.__clients_map = {}
         self.__map_lock = threading.Lock()
         self.__map_lock = threading.Lock()