aboutsummaryrefslogtreecommitdiffstats
path: root/storageserver
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-02 11:28:21 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-02 11:28:21 +0000
commit0a3a3f7da3c41b016dd528723dd43be9aac96cf0 (patch)
tree3959c309e5b7fb36261475c73db478f0d99ca21f /storageserver
parentbbfffa7f5bb5a2f6d8ac388b16aac7ab2796de8e (diff)
Relate to vespalib::duration instead of uint32_t
Diffstat (limited to 'storageserver')
-rw-r--r--storageserver/src/apps/storaged/storage.cpp3
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.");