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:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-12-18 15:15:12 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-02-01 01:53:56 +0300
commit3fbe9b3b49d871071e16dad215e9af0e4dd68e42 (patch)
tree8ac4204926ef5472abd30d8923bdf9b131d4b2c8 /app/models/project.rb
parent2c6a852529cc42507e45d1266489df491ef1b893 (diff)
Add comment about the sequence when removing the pages
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 7a5bf77c5a9..8a8aca44945 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1186,6 +1186,9 @@ class Project < ActiveRecord::Base
end
def remove_pages
+ # 1. We rename pages to temporary directory
+ # 2. We wait 5 minutes, due to NFS caching
+ # 3. We asynchronously remove pages with force
temp_path = "#{path}.#{SecureRandom.hex}"
if Gitlab::PagesTransfer.new.rename_project(path, temp_path, namespace.path)