mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
Fix ledger sequence on copynode
This commit is contained in:
committed by
manojsdoshi
parent
8707c15b9c
commit
ef53197e1f
@@ -304,8 +304,7 @@ SHAMapStoreImp::copyNode(
|
|||||||
SHAMapAbstractNode const& node)
|
SHAMapAbstractNode const& node)
|
||||||
{
|
{
|
||||||
// Copy a single record from node to dbRotating_
|
// Copy a single record from node to dbRotating_
|
||||||
dbRotating_->fetchNodeObject(
|
dbRotating_->fetchNodeObject(node.getNodeHash().as_uint256());
|
||||||
node.getNodeHash().as_uint256(), node.getSeq());
|
|
||||||
if (!(++nodeCount % checkHealthInterval_))
|
if (!(++nodeCount % checkHealthInterval_))
|
||||||
{
|
{
|
||||||
if (health())
|
if (health())
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ private:
|
|||||||
|
|
||||||
for (auto const& key : cache.getKeys())
|
for (auto const& key : cache.getKeys())
|
||||||
{
|
{
|
||||||
dbRotating_->fetchNodeObject(key, 0);
|
dbRotating_->fetchNodeObject(key);
|
||||||
if (!(++check % checkHealthInterval_) && health())
|
if (!(++check % checkHealthInterval_) && health())
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ public:
|
|||||||
std::shared_ptr<NodeObject>
|
std::shared_ptr<NodeObject>
|
||||||
fetchNodeObject(
|
fetchNodeObject(
|
||||||
uint256 const& hash,
|
uint256 const& hash,
|
||||||
std::uint32_t ledgerSeq,
|
std::uint32_t ledgerSeq = 0,
|
||||||
FetchType fetchType = FetchType::synchronous);
|
FetchType fetchType = FetchType::synchronous);
|
||||||
|
|
||||||
/** Fetch an object without waiting.
|
/** Fetch an object without waiting.
|
||||||
@@ -139,7 +139,8 @@ public:
|
|||||||
|
|
||||||
@note This can be called concurrently.
|
@note This can be called concurrently.
|
||||||
@param hash The key of the object to retrieve
|
@param hash The key of the object to retrieve
|
||||||
@param ledgerSeq The sequence of the ledger where the object is stored.
|
@param ledgerSeq The sequence of the ledger where the
|
||||||
|
object is stored, used by the shard store.
|
||||||
@param nodeObject The object retrieved
|
@param nodeObject The object retrieved
|
||||||
@return Whether the operation completed
|
@return Whether the operation completed
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user