Skip to content

Commit 4e2a503

Browse files
authored
Merge pull request #1074 from Altinity/bugfix/antalya-25.8/prefer_large_blocks
Fix prefersLargeBlocks for cluster storage
2 parents 67a38d1 + 2d4ca2f commit 4e2a503

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
@@ -872,4 +872,11 @@ void StorageObjectStorageCluster::onActionLockRemove(StorageActionBlockType acti
872872
IStorageCluster::onActionLockRemove(action_type);
873873
}
874874

875+
bool StorageObjectStorageCluster::prefersLargeBlocks() const
876+
{
877+
if (pure_storage)
878+
return pure_storage->prefersLargeBlocks();
879+
return IStorageCluster::prefersLargeBlocks();
880+
}
881+
875882
}

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)