Skip to content

Commit

Permalink
Merge 304e5d6 into 29cf2b5
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg authored Jul 18, 2022
2 parents 29cf2b5 + 304e5d6 commit f698f03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/db-exporter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,19 @@ pub fn apply_snapshot(
}
file_list.push((column, nums, verify_hash));
}

for (file_name, nums, _) in file_list.iter() {
let file = BufReader::new(File::open(input_path.join(file_name))?);
let mut cnt = 0;
for _ in file.lines() {
cnt += 1;
}
if cnt != *nums {
println!("file {} line nums {} not equal {}", file_name, cnt, *nums);
std::process::exit(2);
}
}

let mbar = MultiProgress::new();
for item in file_list.iter().take(file_list.len() - 1) {
let (column, nums, verify_hash) = item.clone();
Expand Down

0 comments on commit f698f03

Please sign in to comment.