Remove unnecessary println!

This commit is contained in:
Yuriy Dupyn 2024-02-05 15:30:39 +01:00
parent 61de195658
commit 62d4720e54

View file

@ -356,10 +356,8 @@ pub trait CursorWithAccessToIndex<T>: CursorWithStoreHeader<T> {
where T: Encode + Decode + Ord + Send + Sync
{
if self.header().is_column_indexed(column) {
println!("INDEXED LOOKUP");
self.index_lookup(column, value).await
} else {
println!("BRUTE-FORCE LOOKUP");
self.find_all_eq_bruteforce(column, value).await
}
}
@ -577,7 +575,6 @@ impl <'cursor, T> WriteCursor<'cursor, T>
pub async fn mark_deleted_at(&mut self, file_position: FilePosition, enable_garbage_collector: bool) -> Result<()>
where T: Encode + Decode + Ord + Send + Sync + Clone + Ord
{
println!("MARKING {} as DELETED", file_position);
self.seek_to(file_position).await?;
let mut entry_header = self.read_entry_header().await?;
if entry_header.is_deleted {
@ -637,7 +634,6 @@ impl <'cursor, T> WriteCursor<'cursor, T>
{
let count =
if self.header().is_column_indexed(column) {
println!("DELETION: INDEXED LOOKUP");
let entries = self.index_lookup(column, value).await?;
let count = entries.len();
for entry in entries {
@ -645,7 +641,6 @@ impl <'cursor, T> WriteCursor<'cursor, T>
}
count
} else {
println!("DELETION: BRUTE-FORCE LOOKUP");
let count = self.find_all_eq_bruteforce_and_delete(column, value).await?;
count
};
@ -682,8 +677,9 @@ impl <'cursor, T> WriteCursor<'cursor, T>
where T: Send + Sync + Decode + Encode + Clone + Ord
{
if self.header.deleted_count > GARBAGE_COLLECTION_TRIGGER {
println!("=======START GARBAGE COLLETOR====");
println!("=======START GARBAGE COLLECTOR====");
self.initiate_garbage_collection().await?;
println!("=======GARBAGE COLLECTOR FINISHED====");
}
Ok(())
}