[Core] Remove unnecessary windows syscall in plasma store (#9602)

This commit is contained in:
Siyuan (Ryans) Zhuang
2020-07-23 17:14:25 -07:00
committed by GitHub
parent 8df25b239f
commit 4594f7db2e
+2 -10
View File
@@ -1,12 +1,11 @@
#include "ray/object_manager/plasma/store_runner.h"
#include <fcntl.h>
#include <stdio.h>
#ifndef _WIN32
#include <fcntl.h>
#include <sys/statvfs.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#endif
#include "ray/object_manager/plasma/plasma_allocator.h"
@@ -77,10 +76,6 @@ PlasmaStoreRunner::PlasmaStoreRunner(std::string socket_name, int64_t system_mem
}
void PlasmaStoreRunner::Start() {
#ifdef _WINSOCKAPI_
WSADATA wsadata;
WSAStartup(MAKEWORD(2, 2), &wsadata);
#endif
// Get external store
std::shared_ptr<plasma::ExternalStore> external_store{nullptr};
if (!external_store_endpoint_.empty()) {
@@ -118,9 +113,6 @@ void PlasmaStoreRunner::Start() {
}
main_service_.run();
Shutdown();
#ifdef _WINSOCKAPI_
WSACleanup();
#endif
}
void PlasmaStoreRunner::Stop() {