From 4201ca021ba20349cb4ebe87582f1ad035dd7a85 Mon Sep 17 00:00:00 2001 From: Naios Date: Tue, 24 Mar 2015 12:58:55 +0100 Subject: Core/DBUpdater: Add the possibility to limit the remove of orphaned entries. * This will save you from loosing your update history if you use a repository in bad state (revision or branch) by mistake. * Also turned 1 error message into a warning (cherry picked from commit 966282fbed24a0d0cf8cb3e05b1849c3e6a0d1d6) (cherry picked from commit 3ad7776d5061308d3e2b4ff9e3cbf67d48bffdd6) --- src/server/authserver/authserver.conf.dist | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/server/authserver') diff --git a/src/server/authserver/authserver.conf.dist b/src/server/authserver/authserver.conf.dist index 6ba05e89d72..ba9cb5b23b4 100644 --- a/src/server/authserver/authserver.conf.dist +++ b/src/server/authserver/authserver.conf.dist @@ -227,13 +227,16 @@ Updates.ArchivedRedundancy = 0 Updates.AllowRehash = 1 # -# Updates.CleanDeadRef -# Description: Cleans dead/ orphaned references that occure if a update was deleted or renamed and edited. +# Updates.CleanDeadRefMaxCount +# Description: Cleans dead/ orphaned references that occur if an update was removed or renamed and edited in one step. +# It only starts the clean up if the count of the missing updates is below or equal the Updates.CleanDeadRefMaxCount value. +# This way prevents erasing of the update history due to wrong source directory state (maybe wrong branch or bad revision). # Disable this if you want to know if the database is in a possible "dirty state". -# Default: 1 - (Enabled) +# Default: 3 - (Enabled) # 0 - (Disabled) +# -1 - (Enabled - unlimited) -Updates.CleanDeadRef = 1 +Updates.CleanDeadRefMaxCount = 3 # ################################################################################################### -- cgit v1.2.3