From 044a377eee8562ab5d9981549f19fefd0d368a3f Mon Sep 17 00:00:00 2001 From: Qinren Zhou Date: Tue, 14 Apr 2026 23:35:51 +0800 Subject: [PATCH] fix: crash recovery ut (#336) --- tests/db/crash_recovery/collection_optimizer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/db/crash_recovery/collection_optimizer.cc b/tests/db/crash_recovery/collection_optimizer.cc index db7c96c..f5a473c 100644 --- a/tests/db/crash_recovery/collection_optimizer.cc +++ b/tests/db/crash_recovery/collection_optimizer.cc @@ -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;