]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: clear old snap_trace before building new one
authorSage Weil <sage@newdream.net>
Wed, 31 Mar 2010 22:00:23 +0000 (15:00 -0700)
committerSage Weil <sage@newdream.net>
Wed, 31 Mar 2010 22:00:23 +0000 (15:00 -0700)
Otherwise we just build up a big stack of historical information and send
it all to the client.

src/mds/snap.cc

index c25d591019d6051347c7a4ec9ad5b19315cee681..de9147c918c000285c9c618ccaea82b3b9155a69 100644 (file)
@@ -192,6 +192,8 @@ void SnapRealm::check_cache()
   cached_seq = seq;
   build_snap_set(cached_snaps, cached_seq, cached_last_created, cached_last_destroyed,
                 0, CEPH_NOSNAP);
+
+  cached_snap_trace.clear();
   build_snap_trace(cached_snap_trace);
   
   dout(10) << "check_cache rebuilt " << cached_snaps