@@ -838,7 +838,7 @@ bool TPDisk::ChunkWritePiece(TChunkWrite *evChunkWrite, ui32 pieceShift, ui32 pi
838
838
ui32 dataChunkSizeSectors = Format.ChunkSize / Format.SectorSize ;
839
839
TChunkWriter writer (Mon, *BlockDevice.Get (), Format, state.CurrentNonce , Format.ChunkKey , BufferPool.Get (),
840
840
desiredSectorIdx, dataChunkSizeSectors, Format.MagicDataChunk , chunkIdx, nullptr , desiredSectorIdx,
841
- nullptr , ActorSystem, PDiskId, &DriveModel, Cfg->UseT1ha0HashInFooter , Cfg-> EnableSectorEncryption );
841
+ nullptr , ActorSystem, PDiskId, &DriveModel, Cfg->EnableSectorEncryption );
842
842
843
843
guard.Release ();
844
844
@@ -1012,7 +1012,7 @@ TPDisk::EChunkReadPieceResult TPDisk::ChunkReadPiece(TIntrusivePtr<TChunkRead> &
1012
1012
NWilson::TSpan span (TWilson::PDiskBasic, std::move (traceId), " PDisk.CompletionChunkReadPart" , NWilson::EFlags::NONE, ActorSystem);
1013
1013
traceId = span.GetTraceId ();
1014
1014
THolder<TCompletionChunkReadPart> completion (new TCompletionChunkReadPart (this , read , bytesToRead,
1015
- payloadBytesToRead, payloadOffset, read ->FinalCompletion , isTheLastPart, Cfg-> UseT1ha0HashInFooter , std::move (span)));
1015
+ payloadBytesToRead, payloadOffset, read ->FinalCompletion , isTheLastPart, std::move (span)));
1016
1016
completion->CostNs = DriveModel.TimeForSizeNs (bytesToRead, read ->ChunkIdx , TDriveModel::OP_TYPE_READ);
1017
1017
Y_ABORT_UNLESS (bytesToRead <= completion->GetBuffer ()->Size ());
1018
1018
ui8 *data = completion->GetBuffer ()->Data ();
@@ -1620,7 +1620,7 @@ void TPDisk::WriteApplyFormatRecord(TDiskFormat format, const TKey &mainKey) {
1620
1620
bool encrypt = true ; // Always write encrypter format because some tests use wrong main key to initiate errors
1621
1621
TSysLogWriter formatWriter (Mon, *BlockDevice.Get (), Format, nonce, mainKey, BufferPool.Get (),
1622
1622
0 , ReplicationFactor, Format.MagicFormatChunk , 0 , nullptr , 0 , nullptr , ActorSystem, PDiskId,
1623
- &DriveModel, Cfg-> UseT1ha0HashInFooter , encrypt );
1623
+ &DriveModel, encrypt );
1624
1624
1625
1625
if (format.IsFormatInProgress ()) {
1626
1626
// Fill first bytes with magic pattern
@@ -1708,7 +1708,7 @@ void TPDisk::WriteDiskFormat(ui64 diskSizeBytes, ui32 sectorSizeBytes, ui32 user
1708
1708
// Fill the cyclic log with initial SysLogRecords
1709
1709
SysLogger.Reset (new TSysLogWriter (Mon, *BlockDevice.Get (), Format, SysLogRecord.Nonces .Value [NonceSysLog],
1710
1710
Format.SysLogKey , BufferPool.Get (), firstSectorIdx, endSectorIdx, Format.MagicSysLogChunk , 0 ,
1711
- nullptr , firstSectorIdx, nullptr , ActorSystem, PDiskId, &DriveModel, Cfg-> UseT1ha0HashInFooter ,
1711
+ nullptr , firstSectorIdx, nullptr , ActorSystem, PDiskId, &DriveModel,
1712
1712
Cfg->EnableSectorEncryption ));
1713
1713
1714
1714
bool isFull = false ;
@@ -2590,7 +2590,6 @@ bool TPDisk::Initialize(TActorSystem *actorSystem, const TActorId &pDiskActor) {
2590
2590
REGISTER_LOCAL_CONTROL (ForsetiMaxLogBatchNs);
2591
2591
REGISTER_LOCAL_CONTROL (ForsetiOpPieceSizeSsd);
2592
2592
REGISTER_LOCAL_CONTROL (ForsetiOpPieceSizeRot);
2593
- REGISTER_LOCAL_CONTROL (Cfg->UseT1ha0HashInFooter );
2594
2593
2595
2594
if (Cfg->SectorMap ) {
2596
2595
auto diskModeParams = Cfg->SectorMap ->GetDiskModeParams ();
0 commit comments