Skip to content

Commit 621dd62

Browse files
committed
upd
1 parent 61a3aec commit 621dd62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Storages/ObjectStorage/Utils.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ std::pair<DB::ObjectStoragePtr, std::string> resolveObjectStorageForPath(
291291
std::cerr << "\nSame location, returning base, which is: NULL\n";
292292
return {base_storage, target.key};
293293
}
294+
else
295+
{
296+
std::cerr << "\nStorages are different:\n" << base.scheme << "://" << base.authority
297+
<< " vs " << target.scheme << "://" << target.authority << "\n";
298+
}
294299

295300
const std::string cache_key = endpoint_cache_key(target_norm, target.authority);
296301
if (auto it = secondary_storages.find(cache_key); it != secondary_storages.end())
@@ -334,7 +339,7 @@ std::pair<DB::ObjectStoragePtr, std::string> resolveObjectStorageForPath(
334339

335340
secondary_storages.emplace(cache_key, storage);
336341
if (storage)
337-
std::cerr << "\ncreated new storage: " << storage->getName() << ", " << storage->getObjectsNamespace() << "\n";
342+
std::cerr << "\ncreated new storage: " << storage->getName() << ", " << storage->getObjectsNamespace() << ":\ndescr: " << storage->getDescription() << "\n";
338343
else
339344
std::cerr << "\ncreated new storage: it is NULL\n";
340345
return {storage, target.key};

0 commit comments

Comments
 (0)