Skip to content

Commit

Permalink
remove white spaces (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpeye authored Mar 20, 2024
1 parent b78d937 commit 57b5153
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cloud/blockstore/libs/storage/volume/model/merge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void SplitFreshBlockRangeFromRelativeToGlobalIndices(
{
const ui32 startIndex = srcRange.GetStartIndex();
ui32 blocksCount = 0;

const char* srcRangePtr = srcRange.GetBlocksContent().Data();
while (blocksCount < srcRange.GetBlocksCount()) {
const auto index = RelativeToGlobalIndex(
Expand Down Expand Up @@ -153,7 +153,7 @@ void SplitBlobPieceRangeFromRelativeToGlobalIndices(
dstRange.SetBlobOffset(blobOffset + blocksCount);
dstRange.SetBlockIndex(index);
dstRange.SetBlocksCount(rangeBlocksCount);

blocksCount += rangeBlocksCount;

dstBlobPiece->MutableRanges()->Add(std::move(dstRange));
Expand Down
2 changes: 1 addition & 1 deletion cloud/blockstore/libs/storage/volume/model/merge_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Y_UNIT_TEST_SUITE(TMergeTest)
rangeInBlob.SetBlobOffset(10);
rangeInBlob.SetBlockIndex(13);
rangeInBlob.SetBlocksCount(1024);

NProto::TBlobPiece dst;
SplitBlobPieceRangeFromRelativeToGlobalIndices(
rangeInBlob,
Expand Down
2 changes: 1 addition & 1 deletion cloud/blockstore/libs/storage/volume/partition_requests.h
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ class TPartitionRequestActor final
NProto::TDescribeBlocksResponse& src,
ui32 requestNo,
NProto::TDescribeBlocksResponse& dst)
{
{
if (FAILED(src.GetError().GetCode())) {
*dst.MutableError() = std::move(*src.MutableError());
return;
Expand Down
4 changes: 2 additions & 2 deletions cloud/blockstore/libs/storage/volume/volume_actor_forward.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ bool TVolumeActor::HandleRequest(
return false;
}

// Should always forward request via TPartitionRequestActor for
// Should always forward request via TPartitionRequestActor for
// DesribeBlocks method and multi-partitioned volume.
if (State->GetPartitions().size() == 1 ||
(partitionRequests.size() == 1 && !IsDescribeBlocksMethod<TMethod>))
(partitionRequests.size() == 1 && !IsDescribeBlocksMethod<TMethod>))
{
ev->Get()->Record = std::move(partitionRequests.front().Event->Record);
SendRequestToPartition<TMethod>(
Expand Down
8 changes: 4 additions & 4 deletions cloud/blockstore/libs/storage/volume/volume_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3663,7 +3663,7 @@ Y_UNIT_TEST_SUITE(TVolumeTest)

auto range = TBlockRange64::WithLength(1, 8192);
volume.WriteBlocks(range, clientInfo.GetClientId(), 'X');

auto request = volume.CreateDescribeBlocksRequest(
range,
clientInfo.GetClientId()
Expand All @@ -3676,7 +3676,7 @@ Y_UNIT_TEST_SUITE(TVolumeTest)
UNIT_ASSERT(SUCCEEDED(response1->GetStatus()));
UNIT_ASSERT_VALUES_EQUAL(0, message1.FreshBlockRangesSize());
UNIT_ASSERT_VALUES_EQUAL(8, message1.BlobPiecesSize());

const auto& blobPiece1 = message1.GetBlobPieces(0);
UNIT_ASSERT_VALUES_EQUAL(513, blobPiece1.RangesSize());
const auto& range1 = blobPiece1.GetRanges(0);
Expand All @@ -3691,7 +3691,7 @@ Y_UNIT_TEST_SUITE(TVolumeTest)

range = TBlockRange64::WithLength(9000, 256);
volume.WriteBlocks(range, clientInfo.GetClientId(), 'Y');

request = volume.CreateDescribeBlocksRequest(
range,
clientInfo.GetClientId()
Expand Down Expand Up @@ -3722,7 +3722,7 @@ Y_UNIT_TEST_SUITE(TVolumeTest)

range = TBlockRange64::WithLength(10000, 1);
volume.WriteBlocks(range, clientInfo.GetClientId(), 'Z');

request = volume.CreateDescribeBlocksRequest(
range,
clientInfo.GetClientId()
Expand Down

0 comments on commit 57b5153

Please sign in to comment.