fix: crash recovery ut (#336)

This commit is contained in:
Qinren Zhou 2026-04-14 23:35:51 +08:00 committed by GitHub
parent 56ff00be82
commit 044a377eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -95,11 +95,12 @@ int main(int argc, char **argv) {
std::cout << "Initial stats: " << collection->Stats()->to_string_formatted()
<< std::endl;
auto s = collection->Optimize();
auto s = collection->Optimize(zvec::OptimizeOptions{2});
if (s.ok()) {
std::cout << "Optimize completed successfully" << std::endl;
// Print final stats
std::cout << "Final stats: " << collection->Stats()->to_string_formatted() << std::endl;
std::cout << "Final stats: " << collection->Stats()->to_string_formatted()
<< std::endl;
return 0;
} else {
std::cout << "Optimize failed: " << s.message() << std::endl;