Skip to content

Commit

Permalink
[fix](recycler) Fix recycler compilation issue with libhdfs3 (#38485)
Browse files Browse the repository at this point in the history
This PR fix compilation error for cloud recycler when the USE_LIBHDFS3
flag is enabled.
  • Loading branch information
glzhao89 authored and dataroaring committed Aug 16, 2024
1 parent 723dfea commit 5b0ca6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloud/src/recycler/hdfs_accessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
#include "recycler/hdfs_accessor.h"

#include <gen_cpp/cloud.pb.h>
#include <hadoop_hdfs/hdfs.h>
#ifdef USE_HADOOP_HDFS
#include <hadoop_hdfs/hdfs.h> // IWYU pragma: export
#else
#include <hdfs/hdfs.h> // IWYU pragma: export
#endif

#include <string_view>

Expand Down
4 changes: 4 additions & 0 deletions cloud/src/recycler/hdfs_accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ namespace doris::cloud {

class HdfsVaultInfo;

#ifdef USE_HADOOP_HDFS
using HdfsSPtr = std::shared_ptr<struct hdfs_internal>;
#else
using HdfsSPtr = std::shared_ptr<struct HdfsFileSystemInternalWrapper>;
#endif

class HdfsAccessor final : public StorageVaultAccessor {
public:
Expand Down

0 comments on commit 5b0ca6a

Please sign in to comment.