commit 574342abe44c319d49411be7276b9794152bea31 Author: Thomas Draebing Date: Wed Aug 12 15:30:45 2020 +0200 Register graceful shutdown for index activate command Change-Id: I40f414ce86ed3ee486ee9c90c01bbcbf394cea7f diff --git a/java/com/google/gerrit/sshd/commands/IndexActivateCommand.java b/java/com/google/gerrit/sshd/commands/IndexActivateCommand.java index 0804d08..30dc5c4 100644 --- a/java/com/google/gerrit/sshd/commands/IndexActivateCommand.java +++ b/java/com/google/gerrit/sshd/commands/IndexActivateCommand.java @@ -34,6 +34,7 @@ public class IndexActivateCommand extends SshCommand { @Override protected void run() throws UnloggedFailure { + enableGracefulStop(); try { if (versionManager.isKnownIndex(name)) { if (versionManager.activateLatestIndex(name)) {