This is an automated email from the ASF dual-hosted git repository.

zykkk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 4440812779b [fix](ut) fix ut compile err in macOS (#32450)
4440812779b is described below

commit 4440812779ba0ce4e01e0d9f88ce3f8709c30f2a
Author: zy-kkk <[email protected]>
AuthorDate: Mon Mar 25 17:19:41 2024 +0800

    [fix](ut) fix ut compile err in macOS (#32450)
---
 be/src/io/cache/block_file_cache.h         | 1 +
 be/test/io/cache/block_file_cache_test.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/io/cache/block_file_cache.h 
b/be/src/io/cache/block_file_cache.h
index 36aa94acacf..4de78f228e6 100644
--- a/be/src/io/cache/block_file_cache.h
+++ b/be/src/io/cache/block_file_cache.h
@@ -21,6 +21,7 @@
 
 #include <memory>
 #include <optional>
+#include <thread>
 
 #include "io/cache/file_block.h"
 #include "io/cache/file_cache_common.h"
diff --git a/be/test/io/cache/block_file_cache_test.cpp 
b/be/test/io/cache/block_file_cache_test.cpp
index 497bd217cd2..6b1139d1b41 100644
--- a/be/test/io/cache/block_file_cache_test.cpp
+++ b/be/test/io/cache/block_file_cache_test.cpp
@@ -1143,7 +1143,7 @@ int get_disk_info(const char* const (&argv)[N], int* 
percent) {
         std::cerr << "Error creating pipe" << std::endl;
         return -1;
     }
-    pid_t pid = ::vfork();
+    pid_t pid = ::fork();
     if (pid == -1) {
         std::cerr << "Error forking process" << std::endl;
         return -1;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to