diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-04-16 11:19:56 +0200 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-04-16 13:59:20 +0200 |
commit | 14acbf245582a1821896b94b567c5ca8ba064d4a (patch) | |
tree | cb07cd7ba1e7ec7c482a70f5c129813cc9f9fecc /lib/api/snippets.rb | |
parent | c3e26860be156314e733a6dfb986c91fc55766f5 (diff) | |
download | gitlab-ce-14acbf245582a1821896b94b567c5ca8ba064d4a.tar.gz |
Double-check next value for internal ids.
This is useful for a transition period to migrate away from
`NoninternalAtomicId`. In a situation where both the old and new code to
generate a iid value is run at the same time (for example, during a
deploy different nodes may serve both versions), this will lead to
problems regarding the correct `last_value`. That is, what we track in
`InternalId` may get out of sync with the maximum iid present for
issues.
With this change, we double-check that and correct the `last_value` with
the maximum iid found in issues if necessary.
This is subject to be removed with the 10.8 release and tracked over
here: https://gitlab.com/gitlab-org/gitlab-ce/issues/45389
Closes #45269.
Diffstat (limited to 'lib/api/snippets.rb')
0 files changed, 0 insertions, 0 deletions