Skip to content

Commit

Permalink
remove unused claim_buildrequests
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Apr 30, 2011
1 parent fc3ca1b commit 1fd3187
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions master/buildbot/db/connector.py
Expand Up @@ -309,6 +309,7 @@ def _txn_getSourceStampNumbered(self, t, ssid):

# Properties methods

# used by getChangeNumberedNow (below)
def get_properties_from_db(self, tablename, idname, id, t=None):
if t:
return self._txn_get_properties_from_db(t, tablename, idname, id)
Expand Down Expand Up @@ -349,28 +350,6 @@ def _txn_get_buildername_for_brid(self, t, brid):
return None
return r[0][0]

def claim_buildrequests(self, now, master_name, master_incarnation, brids,
t=None):
if not brids:
return
if t:
self._txn_claim_buildrequests(t, now, master_name,
master_incarnation, brids)
else:
self.runInteractionNow(self._txn_claim_buildrequests,
now, master_name, master_incarnation, brids)
def _txn_claim_buildrequests(self, t, now, master_name, master_incarnation,
brids):
brids = list(brids) # in case it's a set
while brids:
batch, brids = brids[:100], brids[100:]
q = self.quoteq("UPDATE buildrequests"
" SET claimed_at = ?,"
" claimed_by_name = ?, claimed_by_incarnation = ?"
" WHERE id IN " + self.parmlist(len(batch)))
qargs = [now, master_name, master_incarnation] + list(batch)
t.execute(q, qargs)

# used by Builder._startBuildFor_2
def build_started(self, brid, buildnumber):
return self.runInteractionNow(self._txn_build_started, brid, buildnumber)
Expand Down

0 comments on commit 1fd3187

Please sign in to comment.