Fix vitastor-cli osd-tree crash when the etcd request fails #100

Merged
vitalif merged 1 commits from koolkhel/vitastor:cli-osd-tree-etcd-error into master 2026-10-25 17:15:15 +03:00

1 Commits

Author SHA1 Message Date
5c1e9ca0ec Fix vitastor-cli osd-tree crash when the etcd request fails
load_osd_tree() stored the etcd error, but loop() still called
format_tree() which dereferenced the placement tree that was never
built, so osd-tree and ls-osd died with SIGSEGV. Return the error
instead.
2026-10-25 16:10:29 +03:00