Skip to content

Commit

Permalink
fix rare corner case, for system.disks query behavior fix #1007
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Sep 13, 2024
1 parent 7fa1efa commit 7ee1178
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.6.2
BUG FIXES
- fix rare corner case, for system.disks query behavior fix[1007](https://github.com/Altinity/clickhouse-backup/issues/1007)

# v2.6.1
BUG FIXES
- fix unnecessary warnings in `allow_object_disk_streaming: true` behavior during restore
Expand Down
2 changes: 1 addition & 1 deletion pkg/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func (ch *ClickHouse) getDisksFromSystemDisks(ctx context.Context) ([]Disk, erro
}
var result []Disk
query := fmt.Sprintf(
"SELECT d.path, any(d.name) AS name, %s AS type, %s AS free_space, %s AS storage_policies "+
"SELECT d.path AS path, any(d.name) AS name, %s AS type, %s AS free_space, %s AS storage_policies "+
"FROM system.disks AS d %s GROUP BY d.path",
diskTypeSQL, diskFreeSpaceSQL, storagePoliciesSQL, joinStoragePoliciesSQL,
)
Expand Down

0 comments on commit 7ee1178

Please sign in to comment.