remove useless prints

This commit is contained in:
Tamo 2024-11-20 12:27:12 +01:00
parent 56eacd221f
commit 7e379b3d14
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
3 changed files with 0 additions and 10 deletions

View File

@ -948,7 +948,6 @@ impl IndexScheduler {
processing: &ProcessingTasks, processing: &ProcessingTasks,
query: &Query, query: &Query,
) -> Result<RoaringBitmap> { ) -> Result<RoaringBitmap> {
dbg!();
let mut batches = self.all_batch_ids(rtxn)?; let mut batches = self.all_batch_ids(rtxn)?;
if let Some(batch_id) = processing.batch.as_ref().map(|batch| batch.uid) { if let Some(batch_id) = processing.batch.as_ref().map(|batch| batch.uid) {
batches.insert(batch_id); batches.insert(batch_id);
@ -4160,7 +4159,6 @@ mod tests {
tasks: [0, 1, 2, 3].into_iter().collect(), tasks: [0, 1, 2, 3].into_iter().collect(),
}; };
let task_cancelation = index_scheduler.register(kind, None, false).unwrap(); let task_cancelation = index_scheduler.register(kind, None, false).unwrap();
println!("HEEERE");
handle.advance_n_successful_batches(1); handle.advance_n_successful_batches(1);
snapshot!(snapshot_index_scheduler(&index_scheduler), name: "start"); snapshot!(snapshot_index_scheduler(&index_scheduler), name: "start");

View File

@ -65,7 +65,6 @@ async fn perform_snapshot() {
let next_task = task.uid() + 1; let next_task = task.uid() + 1;
loop { loop {
let (value, code) = index.get_task(next_task).await; let (value, code) = index.get_task(next_task).await;
dbg!(&value);
if code != 404 && value["status"].as_str() == Some("succeeded") { if code != 404 && value["status"].as_str() == Some("succeeded") {
break; break;
} }

View File

@ -76,13 +76,6 @@ fn update_index_stats(
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
let ctx = || format!("while updating index stats for index `{index_uid}`"); let ctx = || format!("while updating index stats for index `{index_uid}`");
let stats: Option<&str> = index_stats
.remap_data_type::<Str>()
.get(sched_wtxn, &index_uuid)
.with_context(ctx)
.with_context(|| "While reading value")?;
dbg!(stats);
let stats: Option<v1_9::IndexStats> = index_stats let stats: Option<v1_9::IndexStats> = index_stats
.remap_data_type::<SerdeJson<v1_9::IndexStats>>() .remap_data_type::<SerdeJson<v1_9::IndexStats>>()
.get(sched_wtxn, &index_uuid) .get(sched_wtxn, &index_uuid)