diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-02 11:28:21 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-02 11:28:21 +0000 |
commit | 0a3a3f7da3c41b016dd528723dd43be9aac96cf0 (patch) | |
tree | 3959c309e5b7fb36261475c73db478f0d99ca21f /storageserver | |
parent | bbfffa7f5bb5a2f6d8ac388b16aac7ab2796de8e (diff) |
Relate to vespalib::duration instead of uint32_t
Diffstat (limited to 'storageserver')
-rw-r--r-- | storageserver/src/apps/storaged/storage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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."); |