@@ -1030,7 +1030,7 @@ class TDomainLocal : public TActorBootstrapped<TDomainLocal> {
1030
1030
TRegistrationInfo Info;
1031
1031
TVector<TActorId> Locals;
1032
1032
TActorId Subscriber;
1033
- TVector <TTabletId> HiveIds;
1033
+ std::set <TTabletId> HiveIds;
1034
1034
THashMap<TString, TString> Attributes;
1035
1035
TSubDomainKey DomainKey;
1036
1036
};
@@ -1152,7 +1152,7 @@ class TDomainLocal : public TActorBootstrapped<TDomainLocal> {
1152
1152
1153
1153
void RegisterAsSubDomain (const NKikimrScheme::TEvDescribeSchemeResult &rec,
1154
1154
const TResolveTask &task,
1155
- const TVector <TTabletId> hiveIds,
1155
+ const std::set <TTabletId> hiveIds,
1156
1156
const TActorContext &ctx)
1157
1157
{
1158
1158
const auto &domainDesc = rec.GetPathDescription ().GetDomainDescription ();
@@ -1273,14 +1273,14 @@ class TDomainLocal : public TActorBootstrapped<TDomainLocal> {
1273
1273
const auto &domainDesc = rec.GetPathDescription ().GetDomainDescription ();
1274
1274
Y_ABORT_UNLESS (domainDesc.GetDomainKey ().GetSchemeShard () == SchemeRoot);
1275
1275
1276
- TVector <TTabletId> hiveIds (HiveIds);
1276
+ std::set <TTabletId> hiveIds (HiveIds. begin (), HiveIds. end () );
1277
1277
TTabletId hiveId = domainDesc.GetProcessingParams ().GetHive ();
1278
1278
if (hiveId) {
1279
- hiveIds.emplace_back (hiveId);
1279
+ hiveIds.emplace (hiveId);
1280
1280
}
1281
1281
TTabletId sharedHiveId = domainDesc.GetSharedHive ();
1282
1282
if (sharedHiveId) {
1283
- hiveIds.emplace_back (sharedHiveId);
1283
+ hiveIds.emplace (sharedHiveId);
1284
1284
}
1285
1285
RegisterAsSubDomain (rec, task, hiveIds, ctx);
1286
1286
@@ -1311,7 +1311,7 @@ class TDomainLocal : public TActorBootstrapped<TDomainLocal> {
1311
1311
TTenantInfo& tenant = itTenant->second ;
1312
1312
TTabletId hiveId = ev->Get ()->DescribeSchemeResult .GetPathDescription ().GetDomainDescription ().GetProcessingParams ().GetHive ();
1313
1313
if (hiveId) {
1314
- auto itHiveId = Find ( tenant.HiveIds , hiveId);
1314
+ auto itHiveId = tenant.HiveIds . find ( hiveId);
1315
1315
if (itHiveId == tenant.HiveIds .end ()) {
1316
1316
const auto &domainDesc = ev->Get ()->DescribeSchemeResult .GetPathDescription ().GetDomainDescription ();
1317
1317
TVector<TSubDomainKey> servicedDomains = {TSubDomainKey (domainDesc.GetDomainKey ())};
@@ -1321,7 +1321,7 @@ class TDomainLocal : public TActorBootstrapped<TDomainLocal> {
1321
1321
<< " to hive " << hiveId
1322
1322
<< " (allocated resources: " << tenant.Info .ResourceLimit .ShortDebugString () << " )" );
1323
1323
RegisterLocalNode (tenant.Info .TenantName , tenant.Info .ResourceLimit , hiveId, servicedDomains, ctx);
1324
- tenant.HiveIds .emplace_back (hiveId);
1324
+ tenant.HiveIds .emplace (hiveId);
1325
1325
}
1326
1326
}
1327
1327
}
0 commit comments