Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Liang <ekhliang@gmail.com>
  • Loading branch information
ericl committed Dec 20, 2023
1 parent dd5558e commit 1e19048
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ray/object_manager/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/ray/object_manager/test/object_buffer_pool_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 1e19048

Please sign in to comment.