From 45f36bbfc6c39e4a94529d13fe0c2f74fd1fecd4 Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Tue, 19 Jan 2021 12:11:45 +1000 Subject: [PATCH] osd: initialise m_interval_start Fixes: https://tracker.ceph.com/issues/48918 Signed-off-by: Brad Hubbard --- src/osd/pg_scrubber.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/pg_scrubber.h b/src/osd/pg_scrubber.h index 226c5d41fca..bbbac38ca75 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