Skip to content

Commit

Permalink
[FOLD] Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
undertome committed Sep 9, 2020
1 parent 6e1b74e commit 7cbbd6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ripple/nodestore/impl/DatabaseShardImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ DatabaseShardImp::prepareShards(std::vector<std::uint32_t> const& shardIndexes)
{
return fail(
"comes before earliest shard index " +
std::to_string(earliestShardIndex()), shardIndex);
std::to_string(earliestShardIndex()),
shardIndex);
}

// If we are synced to the network, check if the shard index
Expand Down Expand Up @@ -366,15 +367,14 @@ DatabaseShardImp::prepareShards(std::vector<std::uint32_t> const& shardIndexes)
// Any shard earlier than the two most recent shards
// is a historical shard
if (shardIndex < shardBoundaryIndex(lock))
++ historicalShardsToPrepare;
++historicalShardsToPrepare;
}

auto const numHistShards = numHistoricalShards(lock);

// Check shard count and available storage space
if (numHistShards + historicalShardsToPrepare > maxHistoricalShards_)
return fail(
"maximum number of historical shards reached");
return fail("maximum number of historical shards reached");

if (historicalShardsToPrepare)
{
Expand Down

0 comments on commit 7cbbd6c

Please sign in to comment.