commit 4635158cef7dd3f4f45917c0ed94e34fce12c056 Author: Thomas Draebing Date: Wed Aug 12 15:29:38 2020 +0200 Register graceful shutdown for flush caches command Change-Id: I487015c59a0787b10047b81ad1f9b73aa10dbd88 diff --git a/java/com/google/gerrit/sshd/commands/FlushCaches.java b/java/com/google/gerrit/sshd/commands/FlushCaches.java index 3a06660..e048eae 100644 --- a/java/com/google/gerrit/sshd/commands/FlushCaches.java +++ b/java/com/google/gerrit/sshd/commands/FlushCaches.java @@ -56,6 +56,7 @@ final class FlushCaches extends SshCommand { @Override protected void run() throws Failure { + enableGracefulStop(); try { if (list) { if (all || !caches.isEmpty()) {