Add shard import support to shard database

This commit is contained in:
Miguel Portilla
2018-05-18 09:56:46 -04:00
committed by seelabs
parent 9212c28ef8
commit 658f904ce0
13 changed files with 512 additions and 161 deletions

View File

@@ -1697,7 +1697,7 @@ void LedgerMaster::doAdvance (ScopedLockType& sl)
{
if (auto shardStore = app_.getShardStore())
{
missing = shardStore->prepare(mValidLedgerSeq);
missing = shardStore->prepareLedger(mValidLedgerSeq);
if (missing)
reason = InboundLedger::Reason::SHARD;
}

View File

@@ -2151,7 +2151,7 @@ bool ApplicationImp::nodeToShards()
"Invalid [shard_db] configuration";
return false;
}
shardStore_->importNodeStore();
shardStore_->import(getNodeStore());
return true;
}