Skip to content

Commit

Permalink
Merge branch 'master' into sysinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Aug 31, 2022
2 parents 4485ef6 + d2cc955 commit eaa2092
Show file tree
Hide file tree
Showing 34 changed files with 509 additions and 353 deletions.
6 changes: 6 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions components/test_backup/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use backup::Task;
use collections::HashMap;
use engine_traits::{CfName, IterOptions, CF_DEFAULT, CF_WRITE, DATA_KEY_PREFIX_LEN};
use external_storage_export::make_local_backend;
use futures::channel::mpsc as future_mpsc;
use futures::{channel::mpsc as future_mpsc, executor::block_on};
use grpcio::{ChannelBuilder, Environment};
use kvproto::{brpb::*, kvrpcpb::*, tikvpb::TikvClient};
use rand::Rng;
Expand Down Expand Up @@ -362,7 +362,7 @@ impl TestSuite {
is_scanned_range_aware: false,
});
let digest = crc64fast::Digest::new();
while let Some((k, v)) = scanner.next().unwrap() {
while let Some((k, v)) = block_on(scanner.next()).unwrap() {
checksum = checksum_crc64_xor(checksum, digest.clone(), &k, &v);
total_kvs += 1;
total_bytes += (k.len() + v.len()) as u64;
Expand Down
3 changes: 3 additions & 0 deletions components/tidb_query_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ description = "Common utility of a query engine to run TiDB pushed down executor

[dependencies]
anyhow = "1.0"
async-trait = "0.1"
derive_more = "0.99.3"
error_code = { path = "../error_code", default-features = false }
futures = "0.3"
kvproto = { git = "https://github.com/pingcap/kvproto.git" }
lazy_static = "1.3"
log_wrappers = { path = "../log_wrappers" }
Expand All @@ -18,6 +20,7 @@ serde_json = "1.0"
thiserror = "1.0"
tikv_util = { path = "../tikv_util", default-features = false }
time = "0.1"
yatp = { git = "https://github.com/tikv/yatp.git", branch = "master" }

[dev-dependencies]
byteorder = "1.2"
Expand Down
2 changes: 1 addition & 1 deletion components/tidb_query_common/src/execute_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct ExecSummary {

/// A trait for all execution summary collectors.
pub trait ExecSummaryCollector: Send {
type DurationRecorder;
type DurationRecorder: Send;

/// Creates a new instance with specified output slot index.
fn new(output_index: usize) -> Self
Expand Down

0 comments on commit eaa2092

Please sign in to comment.