Skip to content

Commit ff4b888

Browse files
author
loboxu.1227
committed
dev
1 parent b0b7d88 commit ff4b888

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ mobc = "0.8.4"
4949
openraft = { git = "https://github.com/databendlabs/openraft.git", features = [
5050
"serde",
5151
"type-alias",
52+
"loosen-follower-log-revert",
5253
] }
5354
byteorder = "1.5.0"
5455
tracing = "0.1.40"

src/placement-center/src/openraft/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::fmt::Display;
22

33
use common_base::errors::RobustMQError;
4-
use openraft::error::{NetworkError, RPCError};
4+
use openraft::error::{NetworkError, RPCError, Unreachable};
55

66
use super::typeconfig::TypeConfig;
77

@@ -19,5 +19,5 @@ impl std::error::Error for ErrWrap {}
1919
pub fn to_error<E: std::error::Error + 'static + Clone>(
2020
e: RobustMQError,
2121
) -> RPCError<TypeConfig, E> {
22-
RPCError::Network(NetworkError::new(&e))
22+
RPCError::Unreachable(Unreachable::new(&e))
2323
}

src/placement-center/src/openraft/store/state_machine_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl StateMachineStore {
144144
}
145145

146146
fn store(&self) -> &ColumnFamily {
147-
self.db.cf_handle("store").unwrap()
147+
self.db.cf_handle("_raft_store").unwrap()
148148
}
149149
}
150150

0 commit comments

Comments
 (0)