Show More
@@ -312,6 +312,7 b' class ChangesetStatusModel(BaseModel):' | |||||
312 | for st in cur_statuses: |
|
312 | for st in cur_statuses: | |
313 | st.version += 1 |
|
313 | st.version += 1 | |
314 | Session().add(st) |
|
314 | Session().add(st) | |
|
315 | Session().flush() | |||
315 |
|
316 | |||
316 | def _create_status(user, repo, status, comment, revision, pull_request): |
|
317 | def _create_status(user, repo, status, comment, revision, pull_request): | |
317 | new_status = ChangesetStatus() |
|
318 | new_status = ChangesetStatus() |
@@ -493,7 +493,7 b' class PullRequestModel(BaseModel):' | |||||
493 | ) |
|
493 | ) | |
494 | # we commit early at this point. This has to do with a fact |
|
494 | # we commit early at this point. This has to do with a fact | |
495 | # that before queries do some row-locking. And because of that |
|
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 | # that for large repos could be long resulting in long row locks |
|
497 | # that for large repos could be long resulting in long row locks | |
498 | Session().commit() |
|
498 | Session().commit() | |
499 |
|
499 |
General Comments 0
You need to be logged in to leave comments.
Login now