]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PGMap: add last_state_change to dump output
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 10 Feb 2012 02:14:35 +0000 (18:14 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 17 Feb 2012 22:18:52 +0000 (14:18 -0800)
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/mon/PGMap.cc

index 04c5a8d51311c9a81a10c92790ad685c2e24f07f..2792c26a7c809151db2d1336c0eee54d8bbaf81f 100644 (file)
@@ -421,7 +421,7 @@ void PGMap::dump(ostream& ss) const
   ss << "last_pg_scan " << last_pg_scan << std::endl;
   ss << "full_ratio " << full_ratio << std::endl;
   ss << "nearfull_ratio " << nearfull_ratio << std::endl;
-  ss << "pg_stat\tobjects\tmip\tdegr\tunf\tbytes\tlog\tdisklog\tstate\tv\treported\tup\tacting\tlast_scrub\tscrub_stamp" << std::endl;
+  ss << "pg_stat\tobjects\tmip\tdegr\tunf\tbytes\tlog\tdisklog\tstate\tstate_stamp\tv\treported\tup\tacting\tlast_scrub\tscrub_stamp" << std::endl;
   for (hash_map<pg_t,pg_stat_t>::const_iterator i = pg_stat.begin();
        i != pg_stat.end(); ++i) {
     const pg_stat_t &st(i->second);
@@ -435,6 +435,7 @@ void PGMap::dump(ostream& ss) const
        << "\t" << st.log_size
        << "\t" << st.ondisk_log_size
        << "\t" << pg_state_string(st.state)
+       << "\t" << st.last_change
        << "\t" << st.version
        << "\t" << st.reported
        << "\t" << st.up