]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Initialize superclass from parameter not member
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 7 Nov 2016 21:35:29 +0000 (16:35 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 17 Nov 2016 00:54:31 +0000 (19:54 -0500)
Especially since the member has not been initialized yet.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_cr_rados.h

index ad13ccd908974ce4f547572e6773ed5e4132c83b..87edc67f8129844007ad4b461b09290f204a48f6 100644 (file)
@@ -591,7 +591,7 @@ class RGWWaitCR : public RGWSimpleCoroutine {
 public:
   RGWWaitCR(RGWAsyncRadosProcessor *_async_rados, CephContext *_cct,
            Mutex *_lock, Cond *_cond,
-            int _secs) : RGWSimpleCoroutine(cct), cct(_cct),
+            int _secs) : RGWSimpleCoroutine(_cct), cct(_cct),
                          async_rados(_async_rados), lock(_lock), cond(_cond), secs(_secs), req(NULL) {
   }
   ~RGWWaitCR() {