mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
osd_types: uninit var in ctor pg_query_t
CID 717346: Uninitialized scalar field (UNINIT_CTOR)At (2): Non-static class member "epoch_sent" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
3e4f3794cb
commit
8a3efbbcff
@ -1168,7 +1168,7 @@ struct pg_query_t {
|
||||
pg_history_t history;
|
||||
epoch_t epoch_sent;
|
||||
|
||||
pg_query_t() : type(-1) {}
|
||||
pg_query_t() : type(-1), epoch_sent(0) {}
|
||||
pg_query_t(int t, const pg_history_t& h,
|
||||
epoch_t epoch_sent)
|
||||
: type(t), history(h),
|
||||
|
Loading…
Reference in New Issue
Block a user