@@ -29,7 +29,7 @@ use crate::metric::{
2929 TOTAL_MEMORY_SPILL_TO_LOCALFILE ,
3030} ;
3131use crate :: readable_size:: ReadableSize ;
32- #[ cfg( feature = "hdfs" ) ]
32+ #[ cfg( any ( feature = "hdfs" , feature = "hdrs" ) ) ]
3333use crate :: store:: hdfs:: HdfsStore ;
3434use crate :: store:: localfile:: LocalFileStore ;
3535use crate :: store:: memory:: MemoryStore ;
@@ -73,7 +73,7 @@ impl PersistentStore for LocalFileStore {
7373 }
7474}
7575
76- #[ cfg( feature = "hdfs" ) ]
76+ #[ cfg( any ( feature = "hdfs" , feature = "hdrs" ) ) ]
7777impl PersistentStore for HdfsStore {
7878 fn as_any ( & self ) -> & dyn Any {
7979 self
@@ -127,12 +127,12 @@ impl HybridStore {
127127 }
128128
129129 if StorageType :: contains_hdfs ( & store_type) {
130- #[ cfg( not( feature = "hdfs" ) ) ]
130+ #[ cfg( not( all ( feature = "hdfs" , feature = "hdrs" ) ) ) ]
131131 panic ! ( "The binary is not compiled with feature of hdfs! So the storage type can't involve hdfs." ) ;
132132
133- #[ cfg( feature = "hdfs" ) ]
133+ #[ cfg( any ( feature = "hdfs" , feature = "hdrs" ) ) ]
134134 let hdfs_store = HdfsStore :: from ( config. hdfs_store . unwrap ( ) , & runtime_manager) ;
135- #[ cfg( feature = "hdfs" ) ]
135+ #[ cfg( any ( feature = "hdfs" , feature = "hdrs" ) ) ]
136136 persistent_stores. push_back ( Box :: new ( hdfs_store) ) ;
137137 }
138138
@@ -202,10 +202,10 @@ impl HybridStore {
202202
203203 #[ allow( unused) ]
204204 fn is_hdfs ( & self , store : & dyn Any ) -> bool {
205- #[ cfg( feature = "hdfs" ) ]
205+ #[ cfg( any ( feature = "hdfs" , feature = "hdrs" ) ) ]
206206 return store. is :: < HdfsStore > ( ) ;
207207
208- #[ cfg( not( feature = "hdfs" ) ) ]
208+ #[ cfg( not( all ( feature = "hdfs" , feature = "hdrs" ) ) ) ]
209209 false
210210 }
211211
0 commit comments