We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed55af8 commit 0f70c07Copy full SHA for 0f70c07
src/wal/src/config.rs
@@ -44,9 +44,36 @@ pub enum StorageConfig {
44
impl StorageConfig {
45
pub fn data_disabled(&self) -> bool {
46
match self {
47
- Self::RocksDB(c) => c.disable_data,
48
- Self::Obkv(c) => c.disable_data,
49
- Self::Kafka(c) => c.disable_data,
+ Self::RocksDB(c) => {
+ #[cfg(feature = "wal-rocksdb")]
+ {
50
+ c.disable_data
51
+ }
52
+ #[cfg(not(feature = "wal-rocksdb"))]
53
54
+ false
55
56
57
+ Self::Obkv(c) => {
58
+ #[cfg(feature = "wal-table-kv")]
59
60
61
62
+ #[cfg(not(feature = "wal-table-kv"))]
63
64
65
66
67
+ Self::Kafka(c) => {
68
+ #[cfg(feature = "wal-message-queue")]
69
70
71
72
+ #[cfg(not(feature = "wal-message-queue"))]
73
74
75
76
77
}
78
79
0 commit comments