From 8946dbea418f760e4f0a5cbe2eb2bcbcddd25032 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 3 Dec 2019 14:24:41 +0000 Subject: FastOS_THread::Sleep -> std::chrono::sleep_for Renamed Timer -> ScheduledExecutor. Do not include thread.h when not needed in header files. --- storageserver/src/apps/storaged/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storageserver/src') diff --git a/storageserver/src/apps/storaged/storage.cpp b/storageserver/src/apps/storaged/storage.cpp index 0748cc3cb1e..5996951e65f 100644 --- a/storageserver/src/apps/storaged/storage.cpp +++ b/storageserver/src/apps/storaged/storage.cpp @@ -198,7 +198,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(_maxShutdownTime); + vespalib::ShutdownGuard shutdownGuard(std::chrono::milliseconds(_maxShutdownTime)); LOG(debug, "Attempting proper shutdown"); _process.reset(); LOG(debug, "Completed controlled shutdown."); -- cgit v1.2.3