commit 36822261266fbe6dc1868edf3151af49d31dcd9e Author: Thomas Draebing Date: Wed Aug 12 15:32:55 2020 +0200 Register graceful shutdown for index start command Change-Id: I6363054c7be1568c4a0c29da289fc2baeee27c76 diff --git a/java/com/google/gerrit/sshd/commands/IndexStartCommand.java b/java/com/google/gerrit/sshd/commands/IndexStartCommand.java index f3d349c..5433b17 100644 --- a/java/com/google/gerrit/sshd/commands/IndexStartCommand.java +++ b/java/com/google/gerrit/sshd/commands/IndexStartCommand.java @@ -38,6 +38,7 @@ public class IndexStartCommand extends SshCommand { @Override protected void run() throws UnloggedFailure { + enableGracefulStop(); try { if (versionManager.isKnownIndex(name)) { if (versionManager.startReindexer(name, force)) {