Skip to content

Commit

Permalink
Make BgpServer:message_build_error_ atomic and initialize it to 0
Browse files Browse the repository at this point in the history
Change-Id: Iabebe10df0f6dcb0b701bedcccdb2d4e25065de0
Closes-Bug: #1459401
  • Loading branch information
Nischal Sheth committed Jun 1, 2015
1 parent 90b6cbd commit 4e27905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/bgp/bgp_server.cc
Expand Up @@ -267,6 +267,7 @@ BgpServer::BgpServer(EventManager *evm)
config_mgr_(BgpObjectFactory::Create<BgpConfigManager>(this)),
updater_(new ConfigUpdater(this)) {
num_up_peer_ = 0;
message_build_error_ = 0;
}

BgpServer::~BgpServer() {
Expand Down
2 changes: 1 addition & 1 deletion src/bgp/bgp_server.h
Expand Up @@ -190,7 +190,7 @@ class BgpServer {
boost::scoped_ptr<BgpConfigManager> config_mgr_;
boost::scoped_ptr<ConfigUpdater> updater_;

mutable uint64_t message_build_error_;
mutable tbb::atomic<uint64_t> message_build_error_;

DISALLOW_COPY_AND_ASSIGN(BgpServer);
};
Expand Down

0 comments on commit 4e27905

Please sign in to comment.