From f9928dd87ea7be2050afc146654e1dc83e2b1d26 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Thu, 14 Jul 2022 20:04:20 -0400 Subject: [PATCH] rgwlc: count LCFilter flags towards multi-condition Found by Soumya Koduri Signed-off-by: Matt Benjamin --- src/rgw/rgw_lc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_lc.h b/src/rgw/rgw_lc.h index 3cf3931fdebe5..e08877a35131d 100644 --- a/src/rgw/rgw_lc.h +++ b/src/rgw/rgw_lc.h @@ -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; } -- 2.39.5