Skip to content

Commit

Permalink
remove flush
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jul 19, 2023
1 parent be9e5db commit 350daaa
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions catalog/src/table_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ use std::time::Instant;
use generic_error::BoxError;
use log::{error, info, warn};
use snafu::{OptionExt, ResultExt};
use table_engine::{
engine,
table::{FlushRequest, TableRef},
};
use table_engine::{engine, table::TableRef};
use time_ext::InstantExt;

use crate::{
Expand Down Expand Up @@ -77,12 +74,6 @@ impl TableOperator {

match table_result {
Ok(Some(table)) => {
// When table open successfully, try flush to reduce WAL size, so when reopen
// this shard the WAL required to fetch is reduced.
if let Err(e) = table.flush(FlushRequest { sync: false }).await {
warn!("Try flush after open table failed, err:{e}");
}

schema.register_table(table);
success_count += 1;
}
Expand Down

0 comments on commit 350daaa

Please sign in to comment.