Skip to content

Commit

Permalink
build fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cdy20 committed Oct 23, 2020
1 parent 62d4aab commit 5f36923
Showing 1 changed file with 29 additions and 21 deletions.
50 changes: 29 additions & 21 deletions src/ripple/nodestore/impl/DeterministicShard.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,6 @@ class DeterministicShard
init(Serializer const& finalKey);

public:
/** Creates shared pointer to deterministic shard and initializes it.
*
* @param app Application object
* @param shardDir Directory where shard is located
* @param index Index of the shard
* @param finalKey Serializer of shard's ginal key which consists of:
* shard version (32 bit)
* first ledger sequence in the shard (32 bit)
* last ledger sequence in the shard (32 bit)
* hash of last ledger (256 bits)
* @param j Journal to logging
* @return Shared pointer to deterministic shard or {} in case of error.
*/
friend std::shared_ptr<DeterministicShard>
make_DeterministicShard(
Application& app,
boost::filesystem::path const& shardDir,
std::uint32_t index,
Serializer const& finalKey,
beast::Journal j);

~DeterministicShard();

/** Finalizes, stores and closes the shard.
Expand Down Expand Up @@ -174,8 +153,37 @@ class DeterministicShard

// Maximum number of in-cache objects
std::uint32_t maxMemObjs_;

friend std::shared_ptr<DeterministicShard>
make_DeterministicShard(
Application& app,
boost::filesystem::path const& shardDir,
std::uint32_t index,
Serializer const& finalKey,
beast::Journal j);
};

/** Creates shared pointer to deterministic shard and initializes it.
*
* @param app Application object
* @param shardDir Directory where shard is located
* @param index Index of the shard
* @param finalKey Serializer of shard's ginal key which consists of:
* shard version (32 bit)
* first ledger sequence in the shard (32 bit)
* last ledger sequence in the shard (32 bit)
* hash of last ledger (256 bits)
* @param j Journal to logging
* @return Shared pointer to deterministic shard or {} in case of error.
*/
std::shared_ptr<DeterministicShard>
make_DeterministicShard(
Application& app,
boost::filesystem::path const& shardDir,
std::uint32_t index,
Serializer const& finalKey,
beast::Journal j);

} // namespace NodeStore
} // namespace ripple

Expand Down

0 comments on commit 5f36923

Please sign in to comment.