Skip to content

Commit

Permalink
Do not update session when use space, the sessions will update at the…
Browse files Browse the repository at this point in the history
… next update period.
  • Loading branch information
CPWstatic committed Sep 17, 2021
1 parent 3d6652c commit 32e829c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/graph/validator/UseValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@ Status UseValidator::validateImpl() {

Status UseValidator::toPlan() {
// The input will be set by father validator later.
auto switchSpace = SwitchSpace::make(qctx_, nullptr, *spaceName_);
qctx_->rctx()->session()->updateSpaceName(*spaceName_);
auto session = qctx_->rctx()->session()->getSession();
auto update = UpdateSession::make(qctx_, switchSpace, std::move(session));
root_ = update;
tail_ = switchSpace;
auto reg = SwitchSpace::make(qctx_, nullptr, *spaceName_);
root_ = reg;
tail_ = root_;
return Status::OK();
}
} // namespace graph
Expand Down

0 comments on commit 32e829c

Please sign in to comment.