From: Brad Hubbard Date: Tue, 19 Jan 2021 02:11:45 +0000 (+1000) Subject: osd: initialise m_interval_start X-Git-Tag: v16.1.0~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38979%2Fhead;p=ceph.git osd: initialise m_interval_start Fixes: https://tracker.ceph.com/issues/48918 Signed-off-by: Brad Hubbard (cherry picked from commit 45f36bbfc6c39e4a94529d13fe0c2f74fd1fecd4) --- diff --git a/src/osd/pg_scrubber.h b/src/osd/pg_scrubber.h index 226c5d41fca8..bbbac38ca756 100644 --- a/src/osd/pg_scrubber.h +++ b/src/osd/pg_scrubber.h @@ -525,7 +525,7 @@ class PgScrubber : public ScrubPgIF, public ScrubMachineListener { OSDService* const m_osds; const pg_shard_t m_pg_whoami; ///< a local copy of m_pg->pg_whoami; - epoch_t m_interval_start; ///< interval's 'from' of when scrubbing was first scheduled + epoch_t m_interval_start{0}; ///< interval's 'from' of when scrubbing was first scheduled /* * the exact epoch when the scrubbing actually started (started here - cleared checks * for no-scrub conf). Incoming events are verified against this, with stale events