1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
2 | // Licensed under the MIT license. |
3 | |
4 | #pragma once |
5 | #include <cstdint> |
6 | |
7 | namespace FASTER { |
8 | namespace core { |
9 | |
10 | enum class Status : uint8_t { |
11 | Ok = 0, |
12 | Pending = 1, |
13 | NotFound = 2, |
14 | OutOfMemory = 3, |
15 | IOError = 4, |
16 | Corruption = 5, |
17 | Aborted = 6, |
18 | }; |
19 | |
20 | enum class InternalStatus : uint8_t { |
21 | Ok, |
22 | RETRY_NOW, |
23 | RETRY_LATER, |
24 | RECORD_ON_DISK, |
25 | SUCCESS_UNMARK, |
26 | CPR_SHIFT_DETECTED |
27 | }; |
28 | |
29 | } |
30 | } // namespace FASTER::core |
31 | |