]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/ceph_context: make 'config unset' idempotent
authorSage Weil <sage@redhat.com>
Sun, 22 Sep 2019 18:39:15 +0000 (13:39 -0500)
committerSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 14:07:03 +0000 (09:07 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/ceph_context.cc

index ca469f4c2cbed3c28ec043ffd8081cc884d3d288..a03b61c69d1c1cb04508ed1a62e5b11ef3fb33f0 100644 (file)
@@ -535,6 +535,7 @@ int CephContext::_do_command(
             << cpp_strerror(r);
         } else {
           _conf.apply_changes(&ss);
+         r = 0;
         }
       }