summaryrefslogtreecommitdiff
path: root/lib/api/snippets.rb
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-04-16 11:19:56 +0200
committerAndreas Brandl <abrandl@gitlab.com>2018-04-16 13:59:20 +0200
commit14acbf245582a1821896b94b567c5ca8ba064d4a (patch)
treecb07cd7ba1e7ec7c482a70f5c129813cc9f9fecc /lib/api/snippets.rb
parentc3e26860be156314e733a6dfb986c91fc55766f5 (diff)
downloadgitlab-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