Skip to content

Commit

Permalink
Merge branch 'busyjay/limit-compilation-jobs' into busyjay/split-chec…
Browse files Browse the repository at this point in the history
…k-test
  • Loading branch information
BusyJay committed Apr 13, 2017
2 parents d651ee5 + 885e8b0 commit c933b51
Show file tree
Hide file tree
Showing 6 changed files with 328 additions and 157 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -54,8 +54,8 @@ test:
export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}:${LOCAL_DIR}/lib" && \
export LOG_LEVEL=DEBUG && \
export RUST_BACKTRACE=1 && \
cargo test --features "${ENABLE_FEATURES}" ${NO_RUN} -- --nocapture && \
cargo test --features "${ENABLE_FEATURES}" --bench benches ${NO_RUN} -- --nocapture
cargo test --features "${ENABLE_FEATURES}" ${EXTRA_CARGO_ARGS} -- --nocapture && \
cargo test --features "${ENABLE_FEATURES}" --bench benches ${EXTRA_CARGO_ARGS} -- --nocapture
# TODO: remove above target once https://github.com/rust-lang/cargo/issues/2984 is resolved.

bench:
Expand Down
2 changes: 1 addition & 1 deletion src/raftstore/store/peer.rs
Expand Up @@ -39,7 +39,7 @@ use raftstore::store::Config;
use raftstore::store::worker::{apply, PdTask};
use raftstore::store::worker::apply::ExecResult;

use util::worker::{Worker, Scheduler};
use util::worker::{FutureWorker as Worker, Scheduler};
use raftstore::store::worker::{ApplyTask, ApplyRes};
use util::{clocktime, Either, HashMap, HashSet, strftimespec};

Expand Down
8 changes: 4 additions & 4 deletions src/raftstore/store/store.rs
Expand Up @@ -41,7 +41,7 @@ use protobuf::Message;
use raft::{self, SnapshotStatus, INVALID_INDEX};
use raftstore::{Result, Error};
use kvproto::metapb;
use util::worker::{Worker, Scheduler};
use util::worker::{Worker, Scheduler, FutureWorker};
use util::transport::SendCh;
use util::{rocksdb, HashMap, HashSet, RingQueue};
use storage::{CF_DEFAULT, CF_LOCK, CF_WRITE};
Expand Down Expand Up @@ -114,7 +114,7 @@ pub struct Store<T, C: 'static> {
region_worker: Worker<RegionTask>,
raftlog_gc_worker: Worker<RaftlogGcTask>,
compact_worker: Worker<CompactTask>,
pd_worker: Worker<PdTask>,
pd_worker: FutureWorker<PdTask>,
consistency_check_worker: Worker<ConsistencyCheckTask>,

pub apply_worker: Worker<ApplyTask>,
Expand Down Expand Up @@ -194,7 +194,7 @@ impl<T, C> Store<T, C> {
region_worker: Worker::new("snapshot worker"),
raftlog_gc_worker: Worker::new("raft gc worker"),
compact_worker: Worker::new("compact worker"),
pd_worker: Worker::new("pd worker"),
pd_worker: FutureWorker::new("pd worker"),
consistency_check_worker: Worker::new("consistency check worker"),
apply_worker: Worker::new("apply worker"),
apply_res_receiver: None,
Expand Down Expand Up @@ -411,7 +411,7 @@ impl<T: Transport, C: PdClient> Store<T, C> {
self.cfg.snap_apply_batch_size);
box_try!(self.region_worker.start(runner));

let raftlog_gc_runner = RaftlogGcRunner;
let raftlog_gc_runner = RaftlogGcRunner::new(None);
box_try!(self.raftlog_gc_worker.start(raftlog_gc_runner));

let compact_runner = CompactRunner::new(self.engine.clone());
Expand Down

0 comments on commit c933b51

Please sign in to comment.