]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: initialise m_interval_start 38979/head
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 19 Jan 2021 02:11:45 +0000 (12:11 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 19 Jan 2021 23:59:08 +0000 (09:59 +1000)
Fixes: https://tracker.ceph.com/issues/48918
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 45f36bbfc6c39e4a94529d13fe0c2f74fd1fecd4)

src/osd/pg_scrubber.h

index 226c5d41fca832c29f3ddd71fc01fa07311ceabb..bbbac38ca7565f2fe06e0cc76fa9468cbf1f813e 100644 (file)
@@ -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