]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix MDSCacheObject::clear_replica_map
authorYan, Zheng <zyan@redhat.com>
Wed, 13 Sep 2017 07:54:45 +0000 (15:54 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 13 Sep 2017 07:54:45 +0000 (15:54 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDSCacheObject.h

index 7f12e80953f9dde4c5ed84fdac20fa289965a52f..9a90a1db0c8c315c2b04298b86011776425720c5 100644 (file)
@@ -286,6 +286,7 @@ protected:
   void clear_replica_map() {
     if (!get_replicas().empty())
       put(PIN_REPLICATED);
+    replica_map.clear();
   }
   replica_map_type& get_replicas() { return replica_map; }
   const replica_map_type& get_replicas() const { return replica_map; }