From 1e1904826b39b9cfd1deca8bd02d34027886a5f4 Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Wed, 20 Dec 2023 14:24:26 -0800 Subject: [PATCH] fix build Signed-off-by: Eric Liang --- src/ray/object_manager/common.h | 6 +++++- src/ray/object_manager/test/object_buffer_pool_test.cc | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ray/object_manager/common.h b/src/ray/object_manager/common.h index 4724e29ef855..ecc13e25e5d3 100644 --- a/src/ray/object_manager/common.h +++ b/src/ray/object_manager/common.h @@ -136,7 +136,11 @@ struct PlasmaObjectHeader { Status TryAcquireWriterMutex(); /// Set the error bit. This is a non-blocking method. - void SetErrorUnlocked() { has_error = true; } + void SetErrorUnlocked() { +#ifdef __linux__ + has_error = true; +#endif + } }; /// A struct that includes info about the object. diff --git a/src/ray/object_manager/test/object_buffer_pool_test.cc b/src/ray/object_manager/test/object_buffer_pool_test.cc index 249f8bda3b3a..72314a6b6e88 100644 --- a/src/ray/object_manager/test/object_buffer_pool_test.cc +++ b/src/ray/object_manager/test/object_buffer_pool_test.cc @@ -62,6 +62,8 @@ class MockPlasmaClient : public plasma::PlasmaClientInterface { MOCK_METHOD1(ExperimentalMutableObjectWriteRelease, ray::Status(const ObjectID &object_id)); + MOCK_METHOD1(ExperimentalMutableObjectSetError, ray::Status(const ObjectID &object_id)); + MOCK_METHOD1(ExperimentalMutableObjectReadRelease, ray::Status(const ObjectID &object_id));