1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license.
3
4#pragma once
5#include <cstdint>
6
7namespace FASTER {
8namespace core {
9
10enum 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
20enum 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