mirror of
https://github.com/wassname/ray.git
synced 2026-07-14 11:17:54 +08:00
[Core] Remove unnecessary windows syscall in plasma store (#9602)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user