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