Remove unnecessary println!
This commit is contained in:
parent
61de195658
commit
62d4720e54
1 changed files with 2 additions and 6 deletions
|
|
@ -356,10 +356,8 @@ pub trait CursorWithAccessToIndex<T>: CursorWithStoreHeader<T> {
|
||||||
where T: Encode + Decode + Ord + Send + Sync
|
where T: Encode + Decode + Ord + Send + Sync
|
||||||
{
|
{
|
||||||
if self.header().is_column_indexed(column) {
|
if self.header().is_column_indexed(column) {
|
||||||
println!("INDEXED LOOKUP");
|
|
||||||
self.index_lookup(column, value).await
|
self.index_lookup(column, value).await
|
||||||
} else {
|
} else {
|
||||||
println!("BRUTE-FORCE LOOKUP");
|
|
||||||
self.find_all_eq_bruteforce(column, value).await
|
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<()>
|
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
|
where T: Encode + Decode + Ord + Send + Sync + Clone + Ord
|
||||||
{
|
{
|
||||||
println!("MARKING {} as DELETED", file_position);
|
|
||||||
self.seek_to(file_position).await?;
|
self.seek_to(file_position).await?;
|
||||||
let mut entry_header = self.read_entry_header().await?;
|
let mut entry_header = self.read_entry_header().await?;
|
||||||
if entry_header.is_deleted {
|
if entry_header.is_deleted {
|
||||||
|
|
@ -637,7 +634,6 @@ impl <'cursor, T> WriteCursor<'cursor, T>
|
||||||
{
|
{
|
||||||
let count =
|
let count =
|
||||||
if self.header().is_column_indexed(column) {
|
if self.header().is_column_indexed(column) {
|
||||||
println!("DELETION: INDEXED LOOKUP");
|
|
||||||
let entries = self.index_lookup(column, value).await?;
|
let entries = self.index_lookup(column, value).await?;
|
||||||
let count = entries.len();
|
let count = entries.len();
|
||||||
for entry in entries {
|
for entry in entries {
|
||||||
|
|
@ -645,7 +641,6 @@ impl <'cursor, T> WriteCursor<'cursor, T>
|
||||||
}
|
}
|
||||||
count
|
count
|
||||||
} else {
|
} else {
|
||||||
println!("DELETION: BRUTE-FORCE LOOKUP");
|
|
||||||
let count = self.find_all_eq_bruteforce_and_delete(column, value).await?;
|
let count = self.find_all_eq_bruteforce_and_delete(column, value).await?;
|
||||||
count
|
count
|
||||||
};
|
};
|
||||||
|
|
@ -682,8 +677,9 @@ impl <'cursor, T> WriteCursor<'cursor, T>
|
||||||
where T: Send + Sync + Decode + Encode + Clone + Ord
|
where T: Send + Sync + Decode + Encode + Clone + Ord
|
||||||
{
|
{
|
||||||
if self.header.deleted_count > GARBAGE_COLLECTION_TRIGGER {
|
if self.header.deleted_count > GARBAGE_COLLECTION_TRIGGER {
|
||||||
println!("=======START GARBAGE COLLETOR====");
|
println!("=======START GARBAGE COLLECTOR====");
|
||||||
self.initiate_garbage_collection().await?;
|
self.initiate_garbage_collection().await?;
|
||||||
|
println!("=======GARBAGE COLLECTOR FINISHED====");
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue