Skip to content

Commit

Permalink
adapt
Browse files Browse the repository at this point in the history
Signed-off-by: Calvin Neo <calvinneo1995@gmail.com>
  • Loading branch information
CalvinNeo committed Jan 20, 2025
1 parent 8166ec3 commit 65d0b50
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
5 changes: 3 additions & 2 deletions proxy_components/engine_tiflash/src/import.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.

#[allow(unreachable_code)]
#[allow(unused_variables)]
use engine_traits::{ImportExt, IngestExternalFileOptions, Result};
use rocksdb::IngestExternalFileOptions as RawIngestExternalFileOptions;
use tikv_util::time::Instant;
Expand All @@ -14,7 +15,7 @@ impl ImportExt for RocksEngine {
fn ingest_external_file_cf(&self, cf_name: &str, files: &[&str]) -> Result<()> {
// do nothing
return Ok(());

let cf = util::get_cf_handle(self.as_inner(), cf_name)?;
let mut opts = RocksIngestExternalFileOptions::new();
opts.move_files(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ use raftstore::{
config::RaftstoreConfigManager,
copy_snapshot,
fsm::{store::StoreMeta, RaftBatchSystem, RaftRouter},
AutoSplitController, Callback, LocalReader, RaftCmdExtraOpts, SnapEntry, SnapKey,
SnapManager, SnapManagerBuilder, SplitCheckRunner, StoreMetaDelegate, Transport,
AutoSplitController, Callback, DiskCheckRunner, LocalReader, RaftCmdExtraOpts, SnapEntry,
SnapKey, SnapManager, SnapManagerBuilder, SplitCheckRunner, StoreMetaDelegate, Transport,
},
Result,
};
use raftstore::store::DiskCheckRunner;
use resource_metering::CollectorRegHandle;
use service::service_manager::GrpcServiceManager;
use tempfile::TempDir;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ use raftstore::{
store::{
fsm::{store::StoreMeta, ApplyRouter, RaftBatchSystem, RaftRouter},
msg::RaftCmdExtraOpts,
AutoSplitController, Callback, CheckLeaderRunner, LocalReader, RegionSnapshot, SnapManager,
SnapManagerBuilder, SplitCheckRunner, SplitConfigManager, StoreMetaDelegate,
AutoSplitController, Callback, CheckLeaderRunner, DiskCheckRunner, LocalReader,
RegionSnapshot, SnapManager, SnapManagerBuilder, SplitCheckRunner, SplitConfigManager,
StoreMetaDelegate,
},
Result,
};
use raftstore::store::DiskCheckRunner;
use resource_metering::{CollectorRegHandle, ResourceTagFactory};
use security::SecurityManager;
use service::service_manager::GrpcServiceManager;
Expand Down
1 change: 1 addition & 0 deletions proxy_components/proxy_ffi/src/jemalloc_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern "C" {
#[allow(unused_variables)]
#[allow(unused_mut)]
#[allow(unused_unsafe)]
#[allow(unreachable_code)]
pub fn issue_mallctl_args(
command: &str,
oldptr: *mut ::std::os::raw::c_void,
Expand Down
5 changes: 2 additions & 3 deletions proxy_components/proxy_server/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ use engine_store_ffi::{
},
TiFlashEngine,
};
use raftstore::store::DiskCheckRunner;
use engine_tiflash::PSLogEngine;
use engine_traits::{
Engines, KvEngine, MiscExt, RaftEngine, SingletonFactory, TabletContext, TabletRegistry,
Expand All @@ -60,8 +59,8 @@ use raftstore::{
RaftBatchSystem, RaftRouter, StoreMeta, MULTI_FILES_SNAPSHOT_FEATURE, PENDING_MSG_CAP,
},
memory::MEMTRACE_ROOT as MEMTRACE_RAFTSTORE,
AutoSplitController, CheckLeaderRunner, LocalReader, SnapManager, SnapManagerBuilder,
SplitCheckRunner, SplitConfigManager, StoreMetaDelegate,
AutoSplitController, CheckLeaderRunner, DiskCheckRunner, LocalReader, SnapManager,
SnapManagerBuilder, SplitCheckRunner, SplitConfigManager, StoreMetaDelegate,
},
};
use resource_control::{
Expand Down

0 comments on commit 65d0b50

Please sign in to comment.