Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-03 18:10:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-03 18:10:03 +0300
commitf397d486bc77b286d42f83b89e0879428c05299d (patch)
tree8cabde42b9c8431ca8cdb5a21ae9f3102fe94f27 /lib/gitlab/markdown_cache
parent6b3944a90167998424f6f258dcffcd4ec740ef03 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/markdown_cache')
-rw-r--r--lib/gitlab/markdown_cache/active_record/extension.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/markdown_cache/active_record/extension.rb b/lib/gitlab/markdown_cache/active_record/extension.rb
index af94884f1a7..f73631c9599 100644
--- a/lib/gitlab/markdown_cache/active_record/extension.rb
+++ b/lib/gitlab/markdown_cache/active_record/extension.rb
@@ -39,6 +39,7 @@ module Gitlab
def save_markdown(updates)
return unless persisted? && Gitlab::Database.read_write?
+ return if cached_markdown_version < cached_markdown_version_in_database
update_columns(updates)
end