]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: don't mangle stamp_delta in clear_delta()
authorSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 17:55:02 +0000 (10:55 -0700)
committerSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 17:55:02 +0000 (10:55 -0700)
This is a delta, not a timestamp.

This triggered when a cluster is idle for 2* the mon_delta_reset_interval,
and required a mon restart to fix.

Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/mon/PGMap.cc

index dfb6b1acfd35f7b0d99d3756432540792321e07a..ebdf582ff231d5f5bef7a7bb83ac898f00de860d 100644 (file)
@@ -775,7 +775,7 @@ void PGMap::clear_delta()
 {
   pg_sum_delta = pool_stat_t();
   pg_sum_deltas.clear();
-  stamp_delta = ceph_clock_now(g_ceph_context);
+  stamp_delta = utime_t();
 }
 
 void PGMap::print_summary(Formatter *f, ostream *out) const