##// END OF EJS Templates
pull-requests: increase stability of concurrent pull requests creation by flushing prematurly the statuses of commits....
marcink -
r3368:a4f559a8 default
parent child Browse files
Show More
@@ -312,6 +312,7 b' class ChangesetStatusModel(BaseModel):'
312 312 for st in cur_statuses:
313 313 st.version += 1
314 314 Session().add(st)
315 Session().flush()
315 316
316 317 def _create_status(user, repo, status, comment, revision, pull_request):
317 318 new_status = ChangesetStatus()
@@ -493,7 +493,7 b' class PullRequestModel(BaseModel):'
493 493 )
494 494 # we commit early at this point. This has to do with a fact
495 495 # that before queries do some row-locking. And because of that
496 # we need to commit and finish transation before below validate call
496 # we need to commit and finish transaction before below validate call
497 497 # that for large repos could be long resulting in long row locks
498 498 Session().commit()
499 499
General Comments 0
You need to be logged in to leave comments. Login now