]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: hold rwlock when updating crush location config 7208/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 13 Jan 2016 14:53:29 +0000 (09:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 13 Jan 2016 14:54:29 +0000 (09:54 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/osdc/Objecter.cc

index 25f2b858887ee30ef644a87b382ebedd51a399df..9d6df99093a072844c06b5ac0168664515f3c643 100644 (file)
@@ -168,6 +168,7 @@ void Objecter::handle_conf_change(const struct md_config_t *conf,
 
 void Objecter::update_crush_location()
 {
+  RWLock::WLocker rwlocker(rwlock);
   crush_location.clear();
   vector<string> lvec;
   get_str_vec(cct->_conf->crush_location, ";, \t", lvec);