Fix ledger sequence on copynode

This commit is contained in:
Miguel Portilla
2020-10-22 08:55:32 -04:00
committed by manojsdoshi
parent 8707c15b9c
commit ef53197e1f
3 changed files with 5 additions and 5 deletions

View File

@@ -304,8 +304,7 @@ SHAMapStoreImp::copyNode(
SHAMapAbstractNode const& node)
{
// Copy a single record from node to dbRotating_
dbRotating_->fetchNodeObject(
node.getNodeHash().as_uint256(), node.getSeq());
dbRotating_->fetchNodeObject(node.getNodeHash().as_uint256());
if (!(++nodeCount % checkHealthInterval_))
{
if (health())

View File

@@ -211,7 +211,7 @@ private:
for (auto const& key : cache.getKeys())
{
dbRotating_->fetchNodeObject(key, 0);
dbRotating_->fetchNodeObject(key);
if (!(++check % checkHealthInterval_) && health())
return true;
}

View File

@@ -128,7 +128,7 @@ public:
std::shared_ptr<NodeObject>
fetchNodeObject(
uint256 const& hash,
std::uint32_t ledgerSeq,
std::uint32_t ledgerSeq = 0,
FetchType fetchType = FetchType::synchronous);
/** Fetch an object without waiting.
@@ -139,7 +139,8 @@ public:
@note This can be called concurrently.
@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
@return Whether the operation completed
*/