-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue-2404: don't start migration if it is already finished #2890
base: main
Are you sure you want to change the base?
Conversation
Hi! Thank you for contributing! |
cloud/blockstore/libs/storage/disk_registry/disk_registry_database.h
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/disk_registry/disk_registry_state.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/disk_registry/disk_registry_state.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/disk_registry/disk_registry_state.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну и юнит тест нужен в disk_registry_state_ut_migration.cpp
cloud/blockstore/libs/storage/disk_registry/disk_registry_database.h
Outdated
Show resolved
Hide resolved
disk.FinishedMigrations, | ||
[&](const auto& el) | ||
{ return el.DeviceId == deviceUUID && !el.IsCanceled; })); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В анонимный неймспейс можно утащить лучше, если никто не будет снаружи вызывать.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тогда, чтобы объявить функцию, придется объявление TDiskRegistryState::TDiskState публичным делать, мне показалось, что лучше будет сделать статическую приватную функцию.
cloud/blockstore/libs/storage/disk_registry/disk_registry_state_ut_migration.cpp
Outdated
Show resolved
Hide resolved
cloud/blockstore/libs/storage/disk_registry/disk_registry_state_ut_migration.cpp
Outdated
Show resolved
Hide resolved
2092be5
to
d67fc79
Compare
#2404