]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: properly update CInode->first during journal replay
authorYan, Zheng <zyan@redhat.com>
Thu, 11 Dec 2014 03:08:59 +0000 (11:08 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 5 Feb 2015 14:40:37 +0000 (22:40 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/journal.cc

index c0530bc87076c6d5eeba5ce2ecd89f5edc1b0252..51ac92c21da5559ea37f9d065ff26b0a2ba19e49 100644 (file)
@@ -1252,6 +1252,7 @@ void EMetaBlob::replay(MDS *mds, LogSegment *logseg, MDSlaveUpdate *slaveup)
        dout(10) << "EMetaBlob.replay added " << *in << dendl;
       } else {
        p->update_inode(mds, in);
+       in->first = p->dnfirst;
        if (dn->get_linkage()->get_inode() != in && in->get_parent_dn()) {
          dout(10) << "EMetaBlob.replay unlinking " << *in << dendl;
          unlinked[in] = in->get_parent_dir();