Skip to content

Commit

Permalink
osdc:replace ceph:atomic_t with std::atomic & changes affected by osd…
Browse files Browse the repository at this point in the history
…c_atomic_replacement.

same work as ceph#9138

Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
  • Loading branch information
shawn committed May 23, 2016
1 parent 91e3fd6 commit 37fe326
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 106 deletions.
2 changes: 1 addition & 1 deletion src/librados/RadosClient.cc
Expand Up @@ -331,7 +331,7 @@ void librados::RadosClient::shutdown()
}

bool need_objecter = false;
if (objecter && objecter->initialized.read()) {
if (objecter && objecter->initialized) {
need_objecter = true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/mds/MDSDaemon.cc
Expand Up @@ -1079,7 +1079,7 @@ void MDSDaemon::suicide()
mds_rank->shutdown();
} else {

if (objecter->initialized.read()) {
if (objecter->initialized) {
objecter->shutdown();
}
timer.shutdown();
Expand Down
2 changes: 1 addition & 1 deletion src/mds/MDSRank.cc
Expand Up @@ -227,7 +227,7 @@ void MDSRankDispatcher::shutdown()
// shut down cache
mdcache->shutdown();

if (objecter->initialized.read())
if (objecter->initialized)
objecter->shutdown();

monc->shutdown();
Expand Down

0 comments on commit 37fe326

Please sign in to comment.