mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 15:35:33 +08:00
feat(db): fix bug and add exception catch in meta operation
Former-commit-id: 6d33945997e7a528bc729efdad6076d6532f79b3
This commit is contained in:
parent
486c175b4e
commit
57dfdae3e3
@ -184,7 +184,8 @@ void DBImpl::background_call() {
|
||||
std::lock_guard<std::mutex> lock(_mutex);
|
||||
assert(_bg_compaction_scheduled);
|
||||
|
||||
if (!_bg_error.ok()) return;
|
||||
if (!_bg_error.ok() || _shutting_down.load(std::memory_order_acquire))
|
||||
return ;
|
||||
|
||||
background_compaction();
|
||||
|
||||
|
||||
@ -129,31 +129,41 @@ Status DBMetaImpl::get_group(GroupSchema& group_info) {
|
||||
}
|
||||
|
||||
Status DBMetaImpl::get_group_no_lock(GroupSchema& group_info) {
|
||||
auto groups = ConnectorPtr->select(columns(&GroupSchema::id,
|
||||
&GroupSchema::group_id,
|
||||
&GroupSchema::files_cnt,
|
||||
&GroupSchema::dimension),
|
||||
where(c(&GroupSchema::group_id) == group_info.group_id));
|
||||
assert(groups.size() <= 1);
|
||||
if (groups.size() == 1) {
|
||||
group_info.id = std::get<0>(groups[0]);
|
||||
group_info.files_cnt = std::get<2>(groups[0]);
|
||||
group_info.dimension = std::get<3>(groups[0]);
|
||||
} else {
|
||||
return Status::NotFound("Group " + group_info.group_id + " not found");
|
||||
try {
|
||||
auto groups = ConnectorPtr->select(columns(&GroupSchema::id,
|
||||
&GroupSchema::group_id,
|
||||
&GroupSchema::files_cnt,
|
||||
&GroupSchema::dimension),
|
||||
where(c(&GroupSchema::group_id) == group_info.group_id));
|
||||
assert(groups.size() <= 1);
|
||||
if (groups.size() == 1) {
|
||||
group_info.id = std::get<0>(groups[0]);
|
||||
group_info.files_cnt = std::get<2>(groups[0]);
|
||||
group_info.dimension = std::get<3>(groups[0]);
|
||||
} else {
|
||||
return Status::NotFound("Group " + group_info.group_id + " not found");
|
||||
}
|
||||
} catch (std::exception &e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::has_group(const std::string& group_id, bool& has_or_not) {
|
||||
auto groups = ConnectorPtr->select(columns(&GroupSchema::id),
|
||||
where(c(&GroupSchema::group_id) == group_id));
|
||||
assert(groups.size() <= 1);
|
||||
if (groups.size() == 1) {
|
||||
has_or_not = true;
|
||||
} else {
|
||||
has_or_not = false;
|
||||
try {
|
||||
auto groups = ConnectorPtr->select(columns(&GroupSchema::id),
|
||||
where(c(&GroupSchema::group_id) == group_id));
|
||||
assert(groups.size() <= 1);
|
||||
if (groups.size() == 1) {
|
||||
has_or_not = true;
|
||||
} else {
|
||||
has_or_not = false;
|
||||
}
|
||||
} catch (std::exception &e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
return Status::OK();
|
||||
}
|
||||
@ -183,6 +193,7 @@ Status DBMetaImpl::add_group_file(GroupFileSchema& group_file) {
|
||||
try {
|
||||
auto id = ConnectorPtr->insert(group_file);
|
||||
group_file.id = id;
|
||||
LOG(DEBUG) << "Add group_file of file_id=" << group_file.file_id;
|
||||
} catch (...) {
|
||||
return Status::DBTransactionError("Add file Error");
|
||||
}
|
||||
@ -200,37 +211,42 @@ Status DBMetaImpl::add_group_file(GroupFileSchema& group_file) {
|
||||
Status DBMetaImpl::files_to_index(GroupFilesSchema& files) {
|
||||
files.clear();
|
||||
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_INDEX));
|
||||
try {
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_INDEX));
|
||||
|
||||
std::map<std::string, GroupSchema> groups;
|
||||
std::map<std::string, GroupSchema> groups;
|
||||
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
GetGroupFilePath(group_file);
|
||||
auto groupItr = groups.find(group_file.group_id);
|
||||
if (groupItr == groups.end()) {
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_file.group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
GetGroupFilePath(group_file);
|
||||
auto groupItr = groups.find(group_file.group_id);
|
||||
if (groupItr == groups.end()) {
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_file.group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
}
|
||||
groups[group_file.group_id] = group_info;
|
||||
}
|
||||
groups[group_file.group_id] = group_info;
|
||||
group_file.dimension = groups[group_file.group_id].dimension;
|
||||
files.push_back(group_file);
|
||||
}
|
||||
group_file.dimension = groups[group_file.group_id].dimension;
|
||||
files.push_back(group_file);
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
@ -241,38 +257,43 @@ Status DBMetaImpl::files_to_search(const std::string &group_id,
|
||||
DatePartionedGroupFilesSchema &files) {
|
||||
// TODO: support data partition
|
||||
files.clear();
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::group_id) == group_id and
|
||||
(c(&GroupFileSchema::file_type) == (int) GroupFileSchema::RAW or
|
||||
c(&GroupFileSchema::file_type) == (int) GroupFileSchema::INDEX)));
|
||||
try {
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::group_id) == group_id and
|
||||
(c(&GroupFileSchema::file_type) == (int) GroupFileSchema::RAW or
|
||||
c(&GroupFileSchema::file_type) == (int) GroupFileSchema::INDEX)));
|
||||
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
}
|
||||
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
group_file.dimension = group_info.dimension;
|
||||
GetGroupFilePath(group_file);
|
||||
auto dateItr = files.find(group_file.date);
|
||||
if (dateItr == files.end()) {
|
||||
files[group_file.date] = GroupFilesSchema();
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
}
|
||||
files[group_file.date].push_back(group_file);
|
||||
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
group_file.dimension = group_info.dimension;
|
||||
GetGroupFilePath(group_file);
|
||||
auto dateItr = files.find(group_file.date);
|
||||
if (dateItr == files.end()) {
|
||||
files[group_file.date] = GroupFilesSchema();
|
||||
}
|
||||
files[group_file.date].push_back(group_file);
|
||||
}
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
@ -282,37 +303,42 @@ Status DBMetaImpl::files_to_merge(const std::string& group_id,
|
||||
DatePartionedGroupFilesSchema& files) {
|
||||
files.clear();
|
||||
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::RAW and
|
||||
c(&GroupFileSchema::group_id) == group_id));
|
||||
try {
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::RAW and
|
||||
c(&GroupFileSchema::group_id) == group_id));
|
||||
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
}
|
||||
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
group_file.dimension = group_info.dimension;
|
||||
GetGroupFilePath(group_file);
|
||||
auto dateItr = files.find(group_file.date);
|
||||
if (dateItr == files.end()) {
|
||||
files[group_file.date] = GroupFilesSchema();
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
}
|
||||
files[group_file.date].push_back(group_file);
|
||||
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
group_file.dimension = group_info.dimension;
|
||||
GetGroupFilePath(group_file);
|
||||
auto dateItr = files.find(group_file.date);
|
||||
if (dateItr == files.end()) {
|
||||
files[group_file.date] = GroupFilesSchema();
|
||||
}
|
||||
files[group_file.date].push_back(group_file);
|
||||
}
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
@ -341,88 +367,109 @@ Status DBMetaImpl::get_group_files(const std::string& group_id_,
|
||||
|
||||
Status DBMetaImpl::update_group_file(GroupFileSchema& group_file) {
|
||||
group_file.updated_time = GetMicroSecTimeStamp();
|
||||
auto commited = ConnectorPtr->transaction([&] () mutable {
|
||||
ConnectorPtr->update(group_file);
|
||||
return true;
|
||||
});
|
||||
if (!commited) {
|
||||
return Status::DBTransactionError("Update file Error");
|
||||
try {
|
||||
auto commited = ConnectorPtr->transaction([&] () mutable {
|
||||
ConnectorPtr->update(group_file);
|
||||
return true;
|
||||
});
|
||||
if (!commited) {
|
||||
return Status::DBTransactionError("Update file Error");
|
||||
}
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
LOG(DEBUG) << "id= " << group_file.id << " file_id=" << group_file.file_id;
|
||||
throw e;
|
||||
}
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::update_files(GroupFilesSchema& files) {
|
||||
auto commited = ConnectorPtr->transaction([&] () mutable {
|
||||
for (auto& file : files) {
|
||||
file.updated_time = GetMicroSecTimeStamp();
|
||||
ConnectorPtr->update(file);
|
||||
try {
|
||||
auto commited = ConnectorPtr->transaction([&] () mutable {
|
||||
for (auto& file : files) {
|
||||
file.updated_time = GetMicroSecTimeStamp();
|
||||
ConnectorPtr->update(file);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
if (!commited) {
|
||||
return Status::DBTransactionError("Update files Error");
|
||||
}
|
||||
return true;
|
||||
});
|
||||
if (!commited) {
|
||||
return Status::DBTransactionError("Update files Error");
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::cleanup_ttl_files(uint16_t seconds) {
|
||||
auto now = GetMicroSecTimeStamp();
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_DELETE and
|
||||
c(&GroupFileSchema::updated_time) > now - 1000000*seconds));
|
||||
try {
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_DELETE and
|
||||
c(&GroupFileSchema::updated_time) > now - 1000000*seconds));
|
||||
|
||||
GroupFilesSchema updated;
|
||||
GroupFilesSchema updated;
|
||||
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
GetGroupFilePath(group_file);
|
||||
if (group_file.file_type == GroupFileSchema::TO_DELETE) {
|
||||
boost::filesystem::remove(group_file.location);
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
GetGroupFilePath(group_file);
|
||||
if (group_file.file_type == GroupFileSchema::TO_DELETE) {
|
||||
boost::filesystem::remove(group_file.location);
|
||||
}
|
||||
ConnectorPtr->remove<GroupFileSchema>(group_file.id);
|
||||
LOG(DEBUG) << "Removing deleted id=" << group_file.id << " location=" << group_file.location << std::endl;
|
||||
}
|
||||
ConnectorPtr->remove<GroupFileSchema>(group_file.id);
|
||||
LOG(DEBUG) << "Removing deleted id=" << group_file.id << " location=" << group_file.location << std::endl;
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::cleanup() {
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_DELETE or
|
||||
c(&GroupFileSchema::file_type) == (int)GroupFileSchema::NEW));
|
||||
try {
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::id,
|
||||
&GroupFileSchema::group_id,
|
||||
&GroupFileSchema::file_id,
|
||||
&GroupFileSchema::file_type,
|
||||
&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where(c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_DELETE or
|
||||
c(&GroupFileSchema::file_type) == (int)GroupFileSchema::NEW));
|
||||
|
||||
GroupFilesSchema updated;
|
||||
GroupFilesSchema updated;
|
||||
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
GetGroupFilePath(group_file);
|
||||
if (group_file.file_type == GroupFileSchema::TO_DELETE) {
|
||||
boost::filesystem::remove(group_file.location);
|
||||
for (auto& file : selected) {
|
||||
GroupFileSchema group_file;
|
||||
group_file.id = std::get<0>(file);
|
||||
group_file.group_id = std::get<1>(file);
|
||||
group_file.file_id = std::get<2>(file);
|
||||
group_file.file_type = std::get<3>(file);
|
||||
group_file.rows = std::get<4>(file);
|
||||
group_file.date = std::get<5>(file);
|
||||
GetGroupFilePath(group_file);
|
||||
if (group_file.file_type == GroupFileSchema::TO_DELETE) {
|
||||
boost::filesystem::remove(group_file.location);
|
||||
}
|
||||
ConnectorPtr->remove<GroupFileSchema>(group_file.id);
|
||||
LOG(DEBUG) << "Removing id=" << group_file.id << " location=" << group_file.location << std::endl;
|
||||
}
|
||||
ConnectorPtr->remove<GroupFileSchema>(group_file.id);
|
||||
LOG(DEBUG) << "Removing id=" << group_file.id << " location=" << group_file.location << std::endl;
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
@ -430,26 +477,32 @@ Status DBMetaImpl::cleanup() {
|
||||
|
||||
Status DBMetaImpl::count(const std::string& group_id, long& result) {
|
||||
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where((c(&GroupFileSchema::file_type) == (int)GroupFileSchema::RAW or
|
||||
c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_INDEX or
|
||||
c(&GroupFileSchema::file_type) == (int)GroupFileSchema::INDEX) and
|
||||
c(&GroupFileSchema::group_id) == group_id));
|
||||
try {
|
||||
auto selected = ConnectorPtr->select(columns(&GroupFileSchema::rows,
|
||||
&GroupFileSchema::date),
|
||||
where((c(&GroupFileSchema::file_type) == (int)GroupFileSchema::RAW or
|
||||
c(&GroupFileSchema::file_type) == (int)GroupFileSchema::TO_INDEX or
|
||||
c(&GroupFileSchema::file_type) == (int)GroupFileSchema::INDEX) and
|
||||
c(&GroupFileSchema::group_id) == group_id));
|
||||
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
GroupSchema group_info;
|
||||
group_info.group_id = group_id;
|
||||
auto status = get_group_no_lock(group_info);
|
||||
if (!status.ok()) {
|
||||
return status;
|
||||
}
|
||||
|
||||
result = 0;
|
||||
for (auto& file : selected) {
|
||||
result += std::get<0>(file);
|
||||
}
|
||||
|
||||
result /= group_info.dimension;
|
||||
|
||||
} catch (std::exception & e) {
|
||||
LOG(DEBUG) << e.what();
|
||||
throw e;
|
||||
}
|
||||
|
||||
result = 0;
|
||||
for (auto& file : selected) {
|
||||
result += std::get<0>(file);
|
||||
}
|
||||
|
||||
result /= group_info.dimension;
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user