Skip to content

Commit 93bf31f

Browse files
committed
try to fix build
1 parent b1902c8 commit 93bf31f

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
@@ -190,7 +190,7 @@ std::shared_ptr<IObjectIterator> StorageObjectStorageSource::createFileIterator(
190190
if (local_context->getSettingsRef()[Setting::use_object_storage_list_objects_cache] && object_storage->supportsListObjectsCache())
191191
{
192192
auto & cache = ObjectStorageListObjectsCache::instance();
193-
ObjectStorageListObjectsCache::Key cache_key {object_storage->getDescription(), configuration->getNamespace(), configuration->getPathWithoutGlobs()};
193+
ObjectStorageListObjectsCache::Key cache_key {object_storage->getDescription(), configuration->getNamespace(), configuration->getRawPath().cutGlobs(configuration->supportsPartialPathPrefix())};
194194

195195
if (auto objects_info = cache.get(cache_key, /*filter_by_prefix=*/ false))
196196
{
@@ -199,12 +199,12 @@ std::shared_ptr<IObjectIterator> StorageObjectStorageSource::createFileIterator(
199199
else
200200
{
201201
cache_ptr = std::make_unique<GlobIterator::ListObjectsCacheWithKey>(cache, cache_key);
202-
object_iterator = object_storage->iterate(configuration->getPathWithoutGlobs(), query_settings.list_object_keys_size);
202+
object_iterator = object_storage->iterate(configuration->getRawPath().cutGlobs(configuration->supportsPartialPathPrefix()), query_settings.list_object_keys_size);
203203
}
204204
}
205205
else
206206
{
207-
object_iterator = object_storage->iterate(configuration->getPathWithoutGlobs(), query_settings.list_object_keys_size);
207+
object_iterator = object_storage->iterate(configuration->getRawPath().cutGlobs(configuration->supportsPartialPathPrefix()), query_settings.list_object_keys_size);
208208
}
209209

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

0 commit comments

Comments
 (0)