Skip to content

Commit

Permalink
issue-1922: making background ops' read/writeblob requests async (#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
qkrorlqr authored Sep 10, 2024
1 parent 84329d3 commit ea883f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ void TCompactionActor::ReadBlob(const TActorContext& ctx)
BlockSize
));
request->Blobs.emplace_back(blob.BlobId, std::move(blocks));
request->Blobs.back().Async = true;

Buffers[blob.BlobId] = request->Buffer;

Expand Down Expand Up @@ -204,6 +205,7 @@ void TCompactionActor::WriteBlob(const TActorContext& ctx)
}

request->Blobs.emplace_back(blob.BlobId, std::move(blobContent));
request->Blobs.back().Async = true;
}

NCloud::Send(ctx, Tablet, std::move(request));
Expand Down
1 change: 1 addition & 0 deletions cloud/filestore/libs/storage/tablet/tablet_actor_flush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void TFlushActor::WriteBlob(const TActorContext& ctx)

for (auto& blob: Blobs) {
request->Blobs.emplace_back(blob.BlobId, std::move(blob.BlobContent));
request->Blobs.back().Async = true;
}

NCloud::Send(ctx, Tablet, std::move(request));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ void TFlushBytesActor::ReadBlobs(const TActorContext& ctx)
BlockSize
));
request->Blobs.emplace_back(blobToRead.BlobId, std::move(blocks));
request->Blobs.back().Async = true;

Buffers[blobToRead.BlobId] = request->Buffer;

Expand Down Expand Up @@ -324,6 +325,7 @@ void TFlushBytesActor::WriteBlob(const TActorContext& ctx)
}

request->Blobs.emplace_back(blob.BlobId, std::move(blobContent));
request->Blobs.back().Async = true;
}

NCloud::Send(ctx, Tablet, std::move(request));
Expand Down

0 comments on commit ea883f6

Please sign in to comment.