summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-11-24 15:03:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-11-24 15:03:50 -0400
commit1f82c755b61f92156d7c159d22926cdca9b63ee1 (patch)
tree5fee63b5e557387912563448eed9164898a90934
parenta88d20e8ea401b86c8a3394c12ad18b1406d1a75 (diff)
create directory for upgraded versio early as a locking mechanism
-rw-r--r--doc/design/assistant/upgrading.mdwn5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/design/assistant/upgrading.mdwn b/doc/design/assistant/upgrading.mdwn
index b1be31457..b1d658c8b 100644
--- a/doc/design/assistant/upgrading.mdwn
+++ b/doc/design/assistant/upgrading.mdwn
@@ -46,4 +46,7 @@ should notice the upgrade and restart.
I don't want every daemon trying to download the file at once..
-TODO Add locking to prevent that.
+Approach: The first new version is installed into a stable directory, based
+on its version. So, start the upgrade by making this directory. If upgrade
+is already in progress, the directory will already exist. (Remove directory
+if upgrade fails.)