Skip to content

Commit

Permalink
add comment about BuildMaster calling db.masters.findMasterId
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Oct 14, 2012
1 parent 1a6e90a commit ecefedf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion master/buildbot/master.py
Expand Up @@ -210,7 +210,10 @@ def sighup(*args):
_reactor.callLater(0, self.reconfig)
signal.signal(signal.SIGHUP, sighup)

# get the masterid so other services can use it in startup/reconfig
# get the masterid so other services can use it in
# startup/reconfig. This goes directly to the DB since the data
# API isn't initialized yet, and anyway, this method is aware of
# the DB API since it just called its setup function
self.masterid = yield self.db.masters.findMasterId(
name=self.name)

Expand Down

0 comments on commit ecefedf

Please sign in to comment.