U4-7283 - Only Master/Single ServerRole should be removing old instructions from the database

This commit is contained in:
albinj
2015-10-21 14:29:18 +01:00
parent 04e46c7cd1
commit f535ece685

View File

@@ -187,7 +187,13 @@ namespace Umbraco.Core.Sync
using (_profilingLogger.DebugDuration<DatabaseServerMessenger>("Syncing from database..."))
{
ProcessDatabaseInstructions();
PruneOldInstructions();
switch (_appContext.GetCurrentServerRole())
{
case ServerRole.Single:
case ServerRole.Master:
PruneOldInstructions();
break;
}
}
}
finally