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 638f48eda81 [fix](compile) Fix MacOS compile error with conditional 
variable definition (#34762)
638f48eda81 is described below

commit 638f48eda812bd265b6aad2f8c81ffdd174d4343
Author: zy-kkk <[email protected]>
AuthorDate: Mon May 13 22:04:09 2024 +0800

    [fix](compile) Fix MacOS compile error with conditional variable definition 
(#34762)
---
 be/src/io/fs/hdfs_file_writer.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/src/io/fs/hdfs_file_writer.cpp 
b/be/src/io/fs/hdfs_file_writer.cpp
index 7a499239bd0..58e9e303308 100644
--- a/be/src/io/fs/hdfs_file_writer.cpp
+++ b/be/src/io/fs/hdfs_file_writer.cpp
@@ -52,7 +52,9 @@ bvar::Adder<uint64_t> 
hdfs_file_created_total("hdfs_file_writer_file_created");
 bvar::Adder<uint64_t> 
hdfs_file_being_written("hdfs_file_writer_file_being_written");
 
 static constexpr size_t MB = 1024 * 1024;
+#ifndef USE_LIBHDFS3
 static constexpr size_t CLIENT_WRITE_PACKET_SIZE = 64 * 1024; // 64 KB
+#endif
 
 inline std::default_random_engine make_random_engine() {
     return std::default_random_engine(


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

Reply via email to