@@ -243,7 +243,7 @@ THolder<TEvPartitionWriter::TEvWriteRequest> Convert(const TProduceRequestData::
243
243
const TString& topicName,
244
244
ui64 cookie,
245
245
const TString& clientDC,
246
- bool chargeExtraRU ) {
246
+ bool ruPerRequest ) {
247
247
auto ev = MakeHolder<TEvPartitionWriter::TEvWriteRequest>();
248
248
auto & request = ev->Record ;
249
249
@@ -255,8 +255,8 @@ THolder<TEvPartitionWriter::TEvWriteRequest> Convert(const TProduceRequestData::
255
255
partitionRequest->SetPartition (data.Index );
256
256
// partitionRequest->SetCmdWriteOffset();
257
257
partitionRequest->SetCookie (cookie);
258
- if (chargeExtraRU ) {
259
- partitionRequest->SetChargeExtraRU (true );
258
+ if (ruPerRequest ) {
259
+ partitionRequest->SetMeteringV2Enabled (true );
260
260
}
261
261
262
262
ui64 totalSize = 0 ;
@@ -321,7 +321,7 @@ void TKafkaProduceActor::ProcessRequest(TPendingRequest::TPtr pendingRequest, co
321
321
pendingRequest->StartTime = ctx.Now ();
322
322
323
323
size_t position = 0 ;
324
- bool chargeExtraRU = Context->Config .GetChargeExtraRUOnRequest ();
324
+ bool ruPerRequest = Context->Config .GetMeteringV2Enabled ();
325
325
for (const auto & topicData : r->TopicData ) {
326
326
const TString& topicPath = NormalizePath (Context->DatabasePath , *topicData.Name );
327
327
for (const auto & partitionData : topicData.PartitionData ) {
@@ -338,8 +338,8 @@ void TKafkaProduceActor::ProcessRequest(TPendingRequest::TPtr pendingRequest, co
338
338
pendingRequest->WaitAcceptingCookies .insert (ownCookie);
339
339
pendingRequest->WaitResultCookies .insert (ownCookie);
340
340
341
- auto ev = Convert (partitionData, *topicData.Name , ownCookie, ClientDC, chargeExtraRU );
342
- chargeExtraRU = false ;
341
+ auto ev = Convert (partitionData, *topicData.Name , ownCookie, ClientDC, ruPerRequest );
342
+ ruPerRequest = false ;
343
343
344
344
Send (writer.second , std::move (ev));
345
345
} else {
0 commit comments