@@ -2970,50 +2970,6 @@ void TPartition::CommitWriteOperations(TTransaction& t)
29702970 BlobEncoder.NewHead .Offset = Parameters->CurOffset ;
29712971 }
29722972
2973- // if (!t.WriteInfo->BlobsFromHead.empty()) {
2974- // auto& first = t.WriteInfo->BlobsFromHead.front();
2975- // // In one operation, a partition can write blocks of several transactions. Some of them can be broken down
2976- // // into parts. We need to take this division into account.
2977- // BlobEncoder.NewHead.PartNo += first.GetPartNo();
2978-
2979- // Parameters->HeadCleared = Parameters->HeadCleared || !t.WriteInfo->BodyKeys.empty();
2980-
2981- // BlobEncoder.NewPartitionedBlob(Partition,
2982- // BlobEncoder.NewHead.Offset,
2983- // first.SourceId,
2984- // first.SeqNo,
2985- // first.GetTotalParts(),
2986- // first.GetTotalSize(),
2987- // Parameters->HeadCleared, // headCleared
2988- // false, // needCompactHead
2989- // MaxBlobSize,
2990- // first.GetPartNo());
2991-
2992- // for (auto& blob : t.WriteInfo->BlobsFromHead) {
2993- // TWriteMsg msg{Max<ui64>(), Nothing(), TEvPQ::TEvWrite::TMsg{
2994- // .SourceId = blob.SourceId,
2995- // .SeqNo = blob.SeqNo,
2996- // .PartNo = (ui16)(blob.PartData ? blob.PartData->PartNo : 0),
2997- // .TotalParts = (ui16)(blob.PartData ? blob.PartData->TotalParts : 1),
2998- // .TotalSize = (ui32)(blob.PartData ? blob.PartData->TotalSize : blob.UncompressedSize),
2999- // .CreateTimestamp = blob.CreateTimestamp.MilliSeconds(),
3000- // .ReceiveTimestamp = blob.CreateTimestamp.MilliSeconds(),
3001- // .DisableDeduplication = false,
3002- // .WriteTimestamp = blob.WriteTimestamp.MilliSeconds(),
3003- // .Data = blob.Data,
3004- // .UncompressedSize = blob.UncompressedSize,
3005- // .PartitionKey = blob.PartitionKey,
3006- // .ExplicitHashKey = blob.ExplicitHashKey,
3007- // .External = false,
3008- // .IgnoreQuotaDeadline = true,
3009- // .HeartbeatVersion = std::nullopt,
3010- // }, std::nullopt};
3011- // msg.Internal = true;
3012-
3013- // WriteInflightSize += msg.Msg.Data.size();
3014- // ExecRequest(msg, *Parameters, PersistRequest.Get());
3015- // }
3016- // }
30172973 for (const auto & [srcId, info] : t.WriteInfo ->SrcIdInfo ) {
30182974 auto & sourceIdBatch = Parameters->SourceIdBatch ;
30192975 auto sourceId = sourceIdBatch.GetSource (srcId);
0 commit comments