Compare commits

...

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

View File

@@ -412,6 +412,8 @@ resume_1:
load_osd_tree();
if (parent->waiting > 0)
return;
if (state == 100)
return;
format_tree();
state = 100;
}