Skip to content

Commit feb19c9

Browse files
committed
Fix prefersLargeBlocks for cluster storage
1 parent cfa1468 commit feb19c9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Storages/ObjectStorage/StorageObjectStorageCluster.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,4 +836,11 @@ void StorageObjectStorageCluster::onActionLockRemove(StorageActionBlockType acti
836836
IStorageCluster::onActionLockRemove(action_type);
837837
}
838838

839+
bool StorageObjectStorageCluster::prefersLargeBlocks() const
840+
{
841+
if (pure_storage)
842+
return pure_storage->prefersLargeBlocks();
843+
return IStorageCluster::prefersLargeBlocks();
844+
}
845+
839846
}

src/Storages/ObjectStorage/StorageObjectStorageCluster.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ class StorageObjectStorageCluster : public IStorageCluster
122122

123123
void onActionLockRemove(StorageActionBlockType action_type) override;
124124

125+
bool prefersLargeBlocks() const override;
126+
125127
private:
126128
void updateQueryToSendIfNeeded(
127129
ASTPtr & query,

0 commit comments

Comments
 (0)