From 0a3a3f7da3c41b016dd528723dd43be9aac96cf0 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Thu, 2 Jan 2020 11:28:21 +0000 Subject: Relate to vespalib::duration instead of uint32_t --- storageserver/src/apps/storaged/storage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'storageserver') diff --git a/storageserver/src/apps/storaged/storage.cpp b/storageserver/src/apps/storaged/storage.cpp index 5996951e65f..e789fd68ecb 100644 --- a/storageserver/src/apps/storaged/storage.cpp +++ b/storageserver/src/apps/storaged/storage.cpp @@ -72,6 +72,7 @@ public: void handleSignals(); private: + vespalib::duration getMaxShutDownTime() { return std::chrono::milliseconds(_maxShutdownTime); } bool Init() override; int Main() override; bool gotSignal() { return _lastSignal != 0; } @@ -198,7 +199,7 @@ int StorageApp::Main() LOG(debug, "Server was attempted stopped, shutting down"); // Create guard that will forcifully kill storage if destruction takes longer // time than given timeout. - vespalib::ShutdownGuard shutdownGuard(std::chrono::milliseconds(_maxShutdownTime)); + vespalib::ShutdownGuard shutdownGuard(getMaxShutDownTime()); LOG(debug, "Attempting proper shutdown"); _process.reset(); LOG(debug, "Completed controlled shutdown."); -- cgit v1.2.3