]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: properly commit snaprealm to dirfrag
authorYan, Zheng <zyan@redhat.com>
Wed, 31 Dec 2014 07:48:49 +0000 (15:48 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 5 Feb 2015 14:40:39 +0000 (22:40 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CDir.cc

index 595f2d7e42a2d2a57e89f7adf0bceaeffa701ce6..93fa4ac06ca1f3a62bbb0df86404eb6c02723245 100644 (file)
@@ -2013,7 +2013,9 @@ void CDir::_encode_dentry(CDentry *dn, bufferlist& bl,
     if (in->is_multiversion() && snaps && !in->snaprealm)
       in->purge_stale_snap_data(*snaps);
 
+    in->encode_snap_blob(in->snap_blob);
     in->encode_bare(bl);
+    in->snap_blob.clear();
   }
 }