Skip to content

Commit e35c16e

Browse files
authored
Silly attempt to fix minio tests
1 parent c9d7bea commit e35c16e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Storages/ObjectStorage/StorageObjectStorageSource.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ std::shared_ptr<IObjectIterator> StorageObjectStorageSource::createFileIterator(
180180
if (local_context->getSettingsRef()[Setting::use_object_storage_list_objects_cache] && object_storage->supportsListObjectsCache())
181181
{
182182
auto & cache = ObjectStorageListObjectsCache::instance();
183-
ObjectStorageListObjectsCache::Key cache_key {object_storage->getDescription(), configuration->getNamespace(), configuration->getRawPath().cutGlobs(false)};
183+
ObjectStorageListObjectsCache::Key cache_key {object_storage->getDescription(), configuration->getNamespace(), configuration->getRawPath().cutGlobs(configuration->supportsPartialPathPrefix())};
184184

185185
if (auto objects_info = cache.get(cache_key, /*filter_by_prefix=*/ false))
186186
{
@@ -189,12 +189,12 @@ std::shared_ptr<IObjectIterator> StorageObjectStorageSource::createFileIterator(
189189
else
190190
{
191191
cache_ptr = std::make_unique<GlobIterator::ListObjectsCacheWithKey>(cache, cache_key);
192-
object_iterator = object_storage->iterate(configuration->getRawPath().cutGlobs(false), query_settings.list_object_keys_size);
192+
object_iterator = object_storage->iterate(configuration->getRawPath().cutGlobs(configuration->supportsPartialPathPrefix()), query_settings.list_object_keys_size);
193193
}
194194
}
195195
else
196196
{
197-
object_iterator = object_storage->iterate(configuration->getRawPath().cutGlobs(false), query_settings.list_object_keys_size);
197+
object_iterator = object_storage->iterate(configuration->getRawPath().cutGlobs(configuration->supportsPartialPathPrefix()), query_settings.list_object_keys_size);
198198
}
199199

200200
/// Iterate through disclosed globs and make a source for each file

0 commit comments

Comments
 (0)