The size of 'unsigned' type maybe not different from different OSes.
And we should always use explicitly sized type.
Fixes: https://tracker.ceph.com/issues/63552
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit
d01bd53da20e2c7952ae1a0943b21075b215d28b)
ceph_seq_t mseq = 0;
int suppress = 0;
- unsigned state = 0;
+ uint32_t state = 0;
int lock_cache_allowed = 0;
};
version_t omap_version = 0;
- unsigned omap_num_objs = 0;
+ uint32_t omap_num_objs = 0;
std::vector<unsigned> omap_num_items;
std::map<inodeno_t, OpenedAnchor> anchor_map;
uint32_t caller_gid = 0;
/* advisory CLIENT_CAPS_* flags to send to mds */
- unsigned flags = 0;
+ uint32_t flags = 0;
int get_caps() const { return head.caps; }
int get_wanted() const { return head.wanted; }
ceph_mds_session_head head;
static constexpr unsigned SESSION_BLOCKLISTED = (1<<0);
- unsigned flags = 0;
+ uint32_t flags = 0;
std::map<std::string, std::string> metadata;
feature_bitset_t supported_features;
metric_spec_t metric_spec;
static constexpr unsigned FLAG_RECURSIVE = 1<<2;
static constexpr unsigned FLAG_REPAIR = 1<<3;
- int op;
+ int32_t op;
inodeno_t ino;
fragset_t frags;
std::string tag;
inodeno_t origin;
- unsigned flags = 0;
+ uint32_t flags = 0;
};
#endif // CEPH_MMDSSCRUB_H
~MMDSScrubStats() override {}
private:
- unsigned epoch;
+ uint32_t epoch;
std::set<std::string> scrubbing_tags;
bool update_scrubbing = false;
bool aborting = false;