Skip to content

Commit a9448e7

Browse files
committed
Merge branch 'homonym-branch-selection' into 'master'
fix: sort branch list by dataStateAt See merge request postgres-ai/database-lab!1064
2 parents 7c5da2e + 3f81691 commit a9448e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/internal/provision/thinclones/zfs/branching.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (m *Manager) ListAllBranches(poolList []string) ([]models.BranchEntity, err
247247
cmd := fmt.Sprintf(
248248
// Get all ZFS snapshots (-t) with options (-o) without output headers (-H).
249249
// Excluding snapshots without "dle:branch" property ("grep -v").
250-
`zfs list -H -t snapshot -o %s,name %s | grep -v "^-" | cat`, branchProp, poolFilter,
250+
`zfs list -H -t snapshot -S %s -o %s,name %s | grep -v "^-" | cat`, dataStateAtLabel, branchProp, poolFilter,
251251
)
252252

253253
out, err := m.runner.Run(cmd)

0 commit comments

Comments
 (0)