Commit 8c07f46a authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1288] added some comment about data source client creation.

parent 235ff5af
......@@ -491,6 +491,11 @@ class NotifyOut:
return msg, qid
def _get_zone_soa(self, zone_name, zone_class):
# We create (and soon drop) the data source client here because
# clients should be thread specific. We could let the main thread
# loop (_dispatcher) create and retain the client in order to avoid
# the overhead when we generalize the interface (and we may also
# revisit the design of notify_out more substantially anyway).
datasrc_config = '{ "database_file": "' + self._db_file + '"}'
result, finder = DataSourceClient('sqlite3',
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment