Skip to content

Commit

Permalink
osdc: changes affected by osdc_atomic_replacement.
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
  • Loading branch information
shawn committed May 23, 2016
1 parent cccbbcc commit 1d7b4fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 1d7b4fa

Please sign in to comment.