]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MOSDBackoff: make *_VERSION static
authorKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 04:44:00 +0000 (12:44 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 05:12:47 +0000 (13:12 +0800)
addresses CID 1400661:  Uninitialized variables  (UNINIT)

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/messages/MOSDBackoff.h

index 181aaf181b900ce9a0db8b84b5762b5efff03c86..5b12884524a2b51800eaf2b776f723fc11d72793 100644 (file)
@@ -21,8 +21,8 @@
 
 class MOSDBackoff : public MOSDFastDispatchOp {
 public:
-  const int HEAD_VERSION = 1;
-  const int COMPAT_VERSION = 1;
+  static constexpr int HEAD_VERSION = 1;
+  static constexpr int COMPAT_VERSION = 1;
 
   spg_t pgid;
   epoch_t map_epoch = 0;