]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: initialize new_backfill in ctor 3229/head
authorSage Weil <sage@redhat.com>
Sun, 21 Dec 2014 15:26:07 +0000 (07:26 -0800)
committerSage Weil <sage@redhat.com>
Sun, 21 Dec 2014 15:27:22 +0000 (07:27 -0800)
commit9c8827a5bd4b15f86fdc1ea14852b73bb4e5a8b8
tree5b5a05962b661f3671f2e18f8e98488ee4337ee8
parent243b9e4350555a323ccc9f8bb5fb364cce98dff5
osd/ReplicatedPG: initialize new_backfill in ctor

*** CID 1260213:  Uninitialized scalar field  (UNINIT_CTOR)
/osd/ReplicatedPG.cc: 1242 in ReplicatedPG::ReplicatedPG(OSDService *,
std::tr1::shared_ptr<const OSDMap>, const PGPool &, spg_t)()
1236       snap_trimmer_machine(this)
1237     {
1238       missing_loc.set_backend_predicates(
1239         pgbackend->get_is_readable_predicate(),
1240         pgbackend->get_is_recoverable_predicate());
1241       snap_trimmer_machine.initiate();
>>>     CID 1260213:  Uninitialized scalar field  (UNINIT_CTOR)
>>>     Non-static class member "new_backfill" is not initialized in this
constructor nor in any functions that it calls.
1242     }
1243
1244     void ReplicatedPG::get_src_oloc(const object_t& oid, const
object_locator_t& oloc, object_locator_t& src_oloc)
1245     {
1246       src_oloc = oloc;
1247       if (oloc.key.empty())

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc