-
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
[NBS] Asynchronous disks allocation #2763
base: main
Are you sure you want to change the base?
Conversation
e6ba142
to
7f1eb3a
Compare
38c1991
to
9842b53
Compare
9842b53
to
2460bac
Compare
args.SyncDeallocatedDisks = | ||
State->MarkDevicesAsClean(ctx.Now(), db, args.Devices); | ||
std::tie(args.SyncAllocatedDisks, args.SyncDeallocatedDisks) = | ||
std::move(State->MarkDevicesAsClean(ctx.Now(), db, args.Devices)); |
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.
без move
|
||
template <typename T, typename U> | ||
using TOpt2 = std::pair<std::optional<T>, std::optional<U>>; | ||
using TOpt2Disk = TOpt2<TAllocatingDiskId, TDeallocatingDiskId>; |
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.
struct TOpt2Disk {
TString AllocatingDiskId;
TString DeallocatingDiskId;
}
return isAllocatingDisk || isDeallocatingDisk; | ||
}); | ||
|
||
Y_ABORT_IF(isAllocatingDisk && isDeallocatingDisk); |
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.
Y_DEBUG_ABORT_UNLESS(!isAllocatingDisk || !isDeallocatingDisk)
auto TDiskRegistryState::FindDiskDevicesAgents(const TDiskState& disk) const | ||
-> std::set<const NProto::TAgentConfig*> | ||
{ | ||
std::set<TString> diskAgents; |
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.
THashSet<> diskAgentIds
agents.insert(AgentList.FindAgent(agentId)); | ||
} | ||
|
||
return std::move(agents); |
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.
без move
diskAgents.insert(DeviceList.FindAgentId(uuid)); | ||
} | ||
|
||
std::set<const NProto::TAgentConfig*> agents; |
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.
THashSet
No description provided.