Skip to content

Commit 2234ced

Browse files
committed
.
1 parent 84dd7a4 commit 2234ced

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut_env.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ struct TActorTestContext {
132132
}
133133

134134
void StartPDiskRestart() {
135-
Send(new TEvBlobStorage::TEvAskWardenRestartPDiskResult(GetPDisk()->PDiskId, MainKey, true, nullptr));
135+
ui32 pdiskId = GetPDisk()->PDiskId;
136+
137+
Send(new TEvBlobStorage::TEvAskWardenRestartPDiskResult(pdiskId, MainKey, true, nullptr));
136138
const auto evInitRes = Recv<TEvBlobStorage::TEvNotifyWardenPDiskRestarted>();
137139

138140
if (!Settings.UsePDiskMock) {
139-
TActorId wellKnownPDiskActorId = MakeBlobStoragePDiskID(PDiskActor->NodeId(), PDisk->PDiskId);
141+
TActorId wellKnownPDiskActorId = MakeBlobStoragePDiskID(PDiskActor->NodeId(), pdiskId);
140142

141143
PDisk = nullptr;
142144

0 commit comments

Comments
 (0)