Skip to content

Commit

Permalink
refactor by cr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Oct 13, 2022
1 parent b1b94df commit c33751a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analytic_engine/src/instance/open.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl Instance {
Ok(table_data)
}

/// Apply manifest data to instance
/// Recover `TableData` by applying manifest data to instance
async fn recover_table_data(
self: &Arc<Self>,
manifest_data: TableManifestData,
Expand Down
1 change: 1 addition & 0 deletions analytic_engine/src/table/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ pub mod tests {
let table_data = TableDataMocker::default()
.table_id(table_id)
.table_name(table_name.clone())
.shard_id(shard_id)
.build();

assert_eq!(table_id, table_data.id);
Expand Down
4 changes: 2 additions & 2 deletions analytic_engine/src/wal_synchronizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! WAL Synchronizer implementation.

use std::{
collections::{BTreeMap, VecDeque},
collections::{HashMap, VecDeque},
sync::{
atomic::{AtomicU64, Ordering},
Arc,
Expand Down Expand Up @@ -149,7 +149,7 @@ impl WalSynchronizer {
pub struct Inner {
wal: WalManagerRef,
config: WalSynchronizerConfig,
tables: RwLock<BTreeMap<Location, SynchronizeState>>,
tables: RwLock<HashMap<Location, SynchronizeState>>,
}

impl Inner {
Expand Down

0 comments on commit c33751a

Please sign in to comment.