]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix missing req_state for librgw 37242/head
authorDaniel Gryniewicz <dang@redhat.com>
Fri, 18 Sep 2020 14:52:02 +0000 (10:52 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Fri, 18 Sep 2020 14:52:02 +0000 (10:52 -0400)
One of the zipper commits broke the declaration of req_state.

Fixes issue #47520

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/librgw.cc

index b23bb62db674a9852de374d74b10e7d693585736..bfad9c04d78cd16f3c39462c3a74218ae46b567c 100644 (file)
@@ -227,7 +227,8 @@ namespace rgw {
     rgw_env.set("HTTP_HOST", "");
 
     /* XXX and -then- bloat up req_state with string copies from it */
-    struct req_state *s = req->get_state();
+    struct req_state rstate(req->cct, &rgw_env, req->id);
+    struct req_state *s = &rstate;
 
     // XXX fix this
     s->cio = io;