mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
add some debug logs
This commit is contained in:
parent
de1b939ca0
commit
f1aa22567f
2 changed files with 7 additions and 0 deletions
|
@ -107,12 +107,15 @@ impl Follower {
|
|||
}
|
||||
|
||||
pub fn get_new_batch(&mut self) -> Batch {
|
||||
info!("Get new batch called");
|
||||
let (id, batch) = self.get_batch.recv().expect("Lost connection to the leader");
|
||||
info!("Got a new batch");
|
||||
self.batch_id = id;
|
||||
batch
|
||||
}
|
||||
|
||||
pub fn ready_to_commit(&mut self) {
|
||||
info!("I'm ready to commit");
|
||||
self.sender.send(FollowerMsg::ReadyToCommit(self.batch_id)).unwrap();
|
||||
|
||||
loop {
|
||||
|
@ -124,6 +127,7 @@ impl Follower {
|
|||
panic!("We missed a batch");
|
||||
}
|
||||
}
|
||||
info!("I got the right to commit");
|
||||
}
|
||||
|
||||
pub fn get_new_task(&mut self) -> (Task, Option<Vec<u8>>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue