]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: remove stale warning in log replay code
authorYan, Zheng <zyan@redhat.com>
Fri, 9 Dec 2016 08:51:26 +0000 (16:51 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Jan 2017 07:19:23 +0000 (15:19 +0800)
we don't re-fill prealloc_inos each time a prealloc ino get used

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/journal.cc

index c2311b1bfde155607389f2f24195d6c4cb99b6c4..51ee9b244081ccf7d12bfaff2fc339ec507baf2d 100644 (file)
@@ -1571,11 +1571,7 @@ void EMetaBlob::replay(MDSRank *mds, LogSegment *logseg, MDSlaveUpdate *slaveup)
       if (session) {
        dout(20) << " (session prealloc " << session->info.prealloc_inos << ")" << dendl;
        if (used_preallocated_ino) {
-         if (session->info.prealloc_inos.empty()) {
-           // HRM: badness in the journal
-           mds->clog->warn() << " replayed op " << client_reqs << " on session for "
-                            << client_name << " with empty prealloc_inos\n";
-         } else {
+         if (!session->info.prealloc_inos.empty()) {
            inodeno_t next = session->next_ino();
            inodeno_t i = session->take_ino(used_preallocated_ino);
            if (next != i)