We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48af2ee commit e6939f8Copy full SHA for e6939f8
1 file changed
libsql-wal/src/checkpointer.rs
@@ -135,6 +135,7 @@ where
135
136
fn should_exit(&self) -> bool {
137
self.shutting_down
138
+ && self.recv.is_empty()
139
&& self.scheduled.is_empty()
140
&& self.checkpointing.is_empty()
141
&& self.join_set.is_empty()
@@ -158,9 +159,11 @@ where
158
159
notified = self.recv.recv(), if !self.shutting_down => {
160
match notified {
161
Some(CheckpointMessage::Namespace(namespace)) => {
162
+ tracing::info!(namespace = namespace.as_str(), "notified for checkpoint");
163
self.scheduled.insert(namespace);
164
}
165
None | Some(CheckpointMessage::Shutdown) => {
166
+ tracing::info!("checkpointed is shutting down. {} namespaces to checkpoint", self.checkpointing.len());
167
self.shutting_down = true;
168
169
0 commit comments