]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgwlc: count LCFilter flags towards multi-condition
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 15 Jul 2022 00:04:20 +0000 (20:04 -0400)
committerMykola Golub <mgolub@suse.com>
Tue, 12 Dec 2023 10:18:08 +0000 (12:18 +0200)
Found by Soumya Koduri <skoduri@redhat.com>

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit f9928dd87ea7be2050afc146654e1dc83e2b1d26)

src/rgw/rgw_lc.h

index a0f888fcc985cbdf6449b2d10e6896bffde015c8..a80931d63701cfafa82d0e0f0c9e67f138e8a0a8 100644 (file)
@@ -223,7 +223,7 @@ public:
 
   // Determine if we need AND tag when creating xml
   bool has_multi_condition() const {
-    if (obj_tags.count() + int(has_prefix()) > 1) // Prefix is a member of Filter
+    if (obj_tags.count() + int(has_prefix()) + int(has_flags()) > 1) // Prefix is a member of Filter
       return true;
     return false;
   }