]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: only try and lssnaps on a dir for as long as it's been around
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 23 Jul 2010 20:42:07 +0000 (13:42 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 23 Jul 2010 21:37:48 +0000 (14:37 -0700)
src/mds/Server.cc

index 3e23450763cdc7aaef691aeb8d07367eec3f905f..a35f909099f0891ab9ed6974769f167a0ec4d23a 100644 (file)
@@ -5435,7 +5435,7 @@ void Server::handle_client_lssnap(MDRequest *mdr)
 
   SnapRealm *realm = diri->find_snaprealm();
   map<snapid_t,SnapInfo*> infomap;
-  realm->get_snap_info(infomap);
+  realm->get_snap_info(infomap, diri->first);
 
   utime_t now = g_clock.now();
   __u32 num = 0;