xrpld
Loading...
Searching...
No Matches
nodestore/Types.h
1#pragma once
2
3#include <xrpl/nodestore/NodeObject.h>
4
5#include <vector>
6
7namespace xrpl::NodeStore {
8
9// This is only used to pre-allocate the array for
10// batch objects and does not affect the amount written.
11//
12static constexpr auto kBatchWritePreallocationSize = 256;
13
14// This sets a limit on the maximum number of writes
15// in a batch. Actual usage can be twice this since
16// we have a new batch growing as we write the old.
17//
18static constexpr auto kBatchWriteLimitSize = 65536;
19
21enum class Status {
22 Ok = 0,
27
29};
30
33
34} // namespace xrpl::NodeStore
static constexpr auto kBatchWriteLimitSize
Status
Return codes from Backend operations.
static constexpr auto kBatchWritePreallocationSize
std::vector< std::shared_ptr< NodeObject > > Batch
A batch of NodeObjects to write at once.