]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: set last_unstale when marking PGs stale
authorSage Weil <sage.weil@dreamhost.com>
Fri, 3 Feb 2012 18:07:46 +0000 (10:07 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 10 Feb 2012 05:58:08 +0000 (21:58 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mon/PGMonitor.cc

index ae42e242be844d8f074c369eb7092cdcc134ec62..4a5719d7837608edd4e73a61b13e26ea1384c1a6 100644 (file)
@@ -877,7 +877,8 @@ bool PGMonitor::check_down_pgs()
       } else {
        stat = &q->second;
       }
-      stat->state |= PG_STATE_STALE;   
+      stat->state |= PG_STATE_STALE;
+      stat->last_unstale = ceph_clock_now(g_ceph_context);
       ret = true;
     }
   }