From 1358d37328e1ee3245a61777c2b6aea269af8832 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 15 May 2020 16:03:02 -0700 Subject: [PATCH] versioning: Use CONTAINER_LISTING_LIMIT when doing container listings Change-Id: If274a01a6660776cf01b71efbdd102159c520794 --- .../common/middleware/versioned_writes/object_versioning.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swift/common/middleware/versioned_writes/object_versioning.py b/swift/common/middleware/versioned_writes/object_versioning.py index 5c9b72d5c9..508972f72e 100644 --- a/swift/common/middleware/versioned_writes/object_versioning.py +++ b/swift/common/middleware/versioned_writes/object_versioning.py @@ -152,7 +152,7 @@ from cgi import parse_header from six.moves.urllib.parse import unquote from swift.common.constraints import MAX_FILE_SIZE, valid_api_version, \ - ACCOUNT_LISTING_LIMIT + ACCOUNT_LISTING_LIMIT, CONTAINER_LISTING_LIMIT from swift.common.http import is_success, is_client_error, HTTP_NOT_FOUND, \ HTTP_CONFLICT from swift.common.request_helpers import get_sys_meta_prefix, \ @@ -1191,7 +1191,7 @@ class ContainerContext(ObjectVersioningContext): 'hash': item['hash'], 'last_modified': item['last_modified'], }) - limit = constrain_req_limit(req, ACCOUNT_LISTING_LIMIT) + limit = constrain_req_limit(req, CONTAINER_LISTING_LIMIT) body = build_listing( null_listing, subdir_listing, broken_listing, reverse=config_true_value(params.get('reverse', 'no')), @@ -1256,7 +1256,7 @@ class ContainerContext(ObjectVersioningContext): 'last_modified': item['last_modified'], }) - limit = constrain_req_limit(req, ACCOUNT_LISTING_LIMIT) + limit = constrain_req_limit(req, CONTAINER_LISTING_LIMIT) body = build_listing( null_listing, versions_listing, subdir_listing, broken_listing,