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));