diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-09-06 15:50:36 +0200 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-09-06 15:50:36 +0200 |
commit | f5e808ff3c1389ee52d575d7938c324db219c8df (patch) | |
tree | e5fd3dab6e743ba0982b2837e6e27424f5c7d2ad | |
parent | 222d9e62f2f88b01542bea0890fb8fba816f83a5 (diff) | |
download | gitlab-ce-ab/one-off-ci-iid-assert.tar.gz |
WIP: Assert we're not inside a transactionab/one-off-ci-iid-assert
-rw-r--r-- | lib/gitlab/ci/pipeline/chain/populate.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/populate.rb b/lib/gitlab/ci/pipeline/chain/populate.rb index 13eca5a9d28..1560ed4efdd 100644 --- a/lib/gitlab/ci/pipeline/chain/populate.rb +++ b/lib/gitlab/ci/pipeline/chain/populate.rb @@ -11,6 +11,7 @@ module Gitlab def perform! # Allocate next IID. This operation must be outside of transactions of pipeline creations. + fail if Gitlab::Database.inside_transaction? pipeline.ensure_project_iid! # Protect the pipeline. This is assigned in Populate instead of |