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