]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: temporarily disable recovery for snapshotted files
authorYan, Zheng <zyan@redhat.com>
Fri, 26 Dec 2014 07:03:58 +0000 (15:03 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 5 Feb 2015 14:40:38 +0000 (22:40 +0800)
recovery of snapshots is very inefficient, which requires
NR_SNAPS * NR_OBJECTS operations.

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

index 265997a2cedbe11b9908e323c0dac485fdcb25fe..e4d4c8400ae8f1c891e96c7b271049a88180beb8 100644 (file)
@@ -5792,6 +5792,7 @@ void MDCache::queue_file_recover(CInode *in)
   assert(in->is_auth());
 
   // cow?
+  /*
   SnapRealm *realm = in->find_snaprealm();
   set<snapid_t> s = realm->get_snaps();
   while (!s.empty() && *s.begin() < in->first)
@@ -5824,6 +5825,7 @@ void MDCache::queue_file_recover(CInode *in)
     mds->mdlog->submit_entry(le, new C_MDC_QueuedCow(this, in, mut));
     mds->mdlog->flush();
   }
+  */
 
   recovery_queue.enqueue(in);
 }