Skip to content

Commit

Permalink
Cleanup and rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTyson committed Nov 11, 2024
1 parent 594a04e commit 3f365af
Show file tree
Hide file tree
Showing 5 changed files with 640 additions and 638 deletions.
2 changes: 1 addition & 1 deletion src/bucket/BucketOutputIterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ BucketOutputIterator<BucketT>::BucketOutputIterator(std::string const& tmpDir,
bme.metaEntry() = mMeta;
put(bme);
}
else
else if constexpr (std::is_same_v<BucketT, HotArchiveBucket>)
{
releaseAssertOrThrow(protocolVersionStartsFrom(
meta.ledgerVersion,
Expand Down
6 changes: 4 additions & 2 deletions src/main/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1927,9 +1927,11 @@ runApplyLoad(CommandLineArgs const& args)

for (size_t i = 0; i < 100; ++i)
{
app.getBucketManager().getBucketList().resolveAllFutures();
app.getBucketManager()
.getLiveBucketList()
.resolveAllFutures();
releaseAssert(app.getBucketManager()
.getBucketList()
.getLiveBucketList()
.futuresAllResolved());
al.benchmark();
}
Expand Down
4 changes: 2 additions & 2 deletions src/simulation/test/LoadGeneratorTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,9 +870,9 @@ TEST_CASE("apply load", "[loadgen][applyload]")
cpuInsRatioExclVm.Clear();
for (size_t i = 0; i < 100; ++i)
{
app->getBucketManager().getBucketList().resolveAllFutures();
app->getBucketManager().getLiveBucketList().resolveAllFutures();
releaseAssert(
app->getBucketManager().getBucketList().futuresAllResolved());
app->getBucketManager().getLiveBucketList().futuresAllResolved());

al.benchmark();
}
Expand Down
Loading

0 comments on commit 3f365af

Please sign in to comment.