Skip to content

Commit a3aaa22

Browse files
committed
chore: minor code gc
1 parent eb735e9 commit a3aaa22

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/query/service/tests/it/storages/fuse/operations/gc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ async fn test_fuse_purge_normal_case() -> Result<()> {
5959
"do_gc: there should be 1 snapshot, 0 segment/block",
6060
expected_num_of_snapshot,
6161
0, // 0 snapshot statistic
62-
1, // 0 segments
63-
1, // 0 blocks
64-
1, // 0 index
62+
1, // 1 segments
63+
1, // 1 blocks
64+
1, // 1 index
6565
Some(()),
6666
None,
6767
)

src/query/service/tests/it/storages/fuse/operations/purge_drop.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ async fn test_fuse_snapshot_truncate_in_drop_all_stmt() -> Result<()> {
5050
let qry = format!("drop table {}.{} all", db, tbl);
5151
execute_command(ctx.clone(), qry.as_str()).await?;
5252

53-
// TODO
5453
check_data_dir(
5554
&fixture,
5655
"drop table: there should be 1 snapshot, 0 segment/block",

src/query/storages/fuse/fuse/src/operations/truncate.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ impl FuseTable {
4141
Default::default(),
4242
vec![],
4343
self.cluster_key_meta.clone(),
44-
// TODO table statistics should be reset?
4544
prev_snapshot.table_statistics_location.clone(),
4645
);
4746
let loc = self.meta_location_generator();

0 commit comments

Comments
 (0)