From: Piotr Dałek Date: Wed, 13 Dec 2017 09:14:30 +0000 (+0100) Subject: osd/PrimaryLogPG: dump snap_trimq size X-Git-Tag: v13.0.2~572^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc7781cf17d11cb09067656cb25c0d710ab60d71;p=ceph.git osd/PrimaryLogPG: dump snap_trimq size One can just parse the snap_trimq string, but that's much more expensive than just reading an unsigned int. Signed-off-by: Piotr Dałek --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 3f75eb5d443..393079193ad 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -933,6 +933,7 @@ int PrimaryLogPG::do_command( f->open_object_section("pg"); f->dump_string("state", pg_state_string(get_state())); f->dump_stream("snap_trimq") << snap_trimq; + f->dump_unsigned("snap_trimq_len", snap_trimq.size()); f->dump_unsigned("epoch", get_osdmap()->get_epoch()); f->open_array_section("up"); for (vector::iterator p = up.begin(); p != up.end(); ++p)