Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
fix the bug create space on group v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tongheihei committed Jun 23, 2021
1 parent 61b2ef3 commit 7a2a5a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/validator/AdminValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ Status CreateSpaceValidator::validateImpl() {
ifNotExist_ = sentence->isIfNotExist();
auto status = Status::OK();
spaceDesc_.set_space_name(std::move(*(sentence->spaceName())));
if (sentence->groupName())
spaceDesc_.set_group_name(std::move(*(sentence->groupName())));
if (sentence->groupName()) {
spaceDesc_.set_group_name(std::move(*(sentence->groupName())));
}
StatusOr<std::string> retStatusOr;
std::string result;
auto* charsetInfo = qctx_->getCharsetInfo();
Expand Down

0 comments on commit 7a2a5a7

Please sign in to comment.