]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW - Zipper - Make default args match in get_obj_state 42455/head
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 22 Jul 2021 15:48:08 +0000 (11:48 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Thu, 22 Jul 2021 15:48:08 +0000 (11:48 -0400)
The default arg for follow_olh was different between the base class and
the Rados class.  Fix it so they're the same.

Fixes: https://tracker.ceph.com/issues/51677
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/rgw_sal.h

index ab34bcb0f4fc75e1bb36a5f7d7f91094af0faa81..df900c1681d4bfc1e5e360cb266b9e5a21c31bd2 100644 (file)
@@ -677,7 +677,7 @@ class Object {
     bool empty() const { return key.empty(); }
     const std::string &get_name() const { return key.name; }
 
-    virtual int get_obj_state(const DoutPrefixProvider* dpp, RGWObjectCtx* rctx, RGWObjState **state, optional_yield y, bool follow_olh = false) = 0;
+    virtual int get_obj_state(const DoutPrefixProvider* dpp, RGWObjectCtx* rctx, RGWObjState **state, optional_yield y, bool follow_olh = true) = 0;
     virtual int set_obj_attrs(const DoutPrefixProvider* dpp, RGWObjectCtx* rctx, Attrs* setattrs, Attrs* delattrs, optional_yield y, rgw_obj* target_obj = NULL) = 0;
     virtual int get_obj_attrs(RGWObjectCtx* rctx, optional_yield y, const DoutPrefixProvider* dpp, rgw_obj* target_obj = NULL) = 0;
     virtual int modify_obj_attrs(RGWObjectCtx* rctx, const char* attr_name, bufferlist& attr_val, optional_yield y, const DoutPrefixProvider* dpp) = 0;