Skip to content

Commit

Permalink
fix heter_server (PaddlePaddle#37604)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmxdream authored Nov 26, 2021
1 parent fcd44b5 commit 8fbb9fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/distributed/service/heter_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class HeterServer {

bool IsExit() { return service_.IsExit(); }

HeterServer() {}
HeterServer() { this->ready_ = 0; }

void RegisterServiceHandler(std::string message_name,
HeterServiceHandler func);
Expand Down Expand Up @@ -391,7 +391,7 @@ class HeterServer {
DISABLE_COPY_AND_ASSIGN(HeterServer);
std::mutex mutex_ready_;

int ready_;
int ready_ = 0;
};

} // end namespace distributed
Expand Down

0 comments on commit 8fbb9fa

Please sign in to comment.