]> git.apps.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)
committerMatt Benjamin <mbenjamin@redhat.com>
Sun, 17 Jul 2022 22:38:22 +0000 (18:38 -0400)
Found by Soumya Koduri <skoduri@redhat.com>

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_lc.h

index 3cf3931fdebe5ce28d618a0140980165502f7081..e08877a35131d79859fc530f7acdf7367d84954c 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;
   }