From e9e9b30e8e2ffaac77f8a895dda18e2f21d97ee8 Mon Sep 17 00:00:00 2001 From: zhagnlu <1542303831@qq.com> Date: Thu, 23 Nov 2023 19:26:25 +0800 Subject: [PATCH] enhance: Disable stdout buffer (#28391) #28390 Signed-off-by: luzhang Co-authored-by: luzhang --- internal/core/src/config/ConfigKnowhere.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/core/src/config/ConfigKnowhere.cpp b/internal/core/src/config/ConfigKnowhere.cpp index cfe2358762..8315559884 100644 --- a/internal/core/src/config/ConfigKnowhere.cpp +++ b/internal/core/src/config/ConfigKnowhere.cpp @@ -45,6 +45,7 @@ KnowhereInitImpl(const char* conf_file) { gflags::SetCommandLineOption("flagfile", conf_file); } #endif + setbuf(stdout, NULL); }; std::call_once(init_knowhere_once_, init);