Skip to content

Commit

Permalink
force brids to be a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Sep 30, 2010
1 parent 2577ff9 commit d369a6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions master/buildbot/db/connector.py
Expand Up @@ -847,6 +847,7 @@ def claim_buildrequests(self, now, master_name, master_incarnation, brids,
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"
Expand Down

0 comments on commit d369a6c

Please sign in to comment.