Some updated

This commit is contained in:
WolverinDEV
2020-02-15 22:03:08 +01:00
parent 64b4a7118b
commit 371ca06bfa
4 changed files with 7 additions and 9 deletions
+3 -3
View File
@@ -711,8 +711,8 @@ std::vector<std::shared_ptr<GroupAssignment>> GroupManager::getAssignedServerGro
sql::result res;
std::vector<std::shared_ptr<GroupAssignment>> result;
if(this->root) {
auto root = this->root->getAssignedServerGroups(cldbid);
result.insert(result.begin(), root.begin(), root.end());
auto client_groups = this->root->getAssignedServerGroups(cldbid);
result.insert(result.begin(), client_groups.begin(), client_groups.end());
}
if(cached) {
@@ -726,7 +726,7 @@ std::vector<std::shared_ptr<GroupAssignment>> GroupManager::getAssignedServerGro
shared_ptr<Group> group = nullptr;
time_point<system_clock> until;
for(int index = 0; index < length; index++){
for(int index = 0; index < length; index++) {
if(value[index] == nullptr) {
logError(this->getServerId(), string() + "Invalid value at " + column[index]);
continue;