]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/scrub: add scrub duration to pg stats 45471/head
authorAishwarya Mathuria <amathuri@redhat.com>
Thu, 10 Mar 2022 10:25:37 +0000 (15:55 +0530)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 17 Mar 2022 03:35:28 +0000 (09:05 +0530)
commitad4569f2d6145b5fe6296f2349126bda8a667713
tree2232f043a5a6f05d51f08e9f682ad16f3c9bd639
parentbf57e1631607dfb8446e9a2061a855c6cab4c09b
osd/scrub: add scrub duration to pg stats

Addition of a SCRUB_DURATION field that shows how long the scrub/deep-scrub of a pg took.
This field will be displayed in the output of the "ceph pg dump --format=json" and "ceph pg ls-by-pool --format=json" commands.

Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
(cherry picked from commit be9f8a15cd490cad9b01556273abe56c2ed7162d)
src/osd/osd_types.cc
src/osd/osd_types.h
src/osd/scrubber/pg_scrubber.cc