Skip to content

Commit

Permalink
change the default path
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Dec 24, 2024
1 parent 801dcb0 commit 5207ff8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mito2/src/cache/file_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ use crate::sst::parquet::metadata::MetadataLoader;
/// Subdirectory of cached files for write.
///
/// This must contain three layers, corresponding to [`build_prometheus_metrics_layer`](object_store::layers::build_prometheus_metrics_layer).
const FILE_DIR: &str = "greptimedb/object_cache/write/";
const FILE_DIR: &str = "cache/object/write/";

/// A file cache manages files on local store and evict files based
/// on size.
Expand Down
2 changes: 1 addition & 1 deletion src/object-store/src/layers/lru_cache/read_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const RECOVER_CACHE_LIST_CONCURRENT: usize = 8;
/// Subdirectory of cached files for read.
///
/// This must contain three layers, corresponding to [`build_prometheus_metrics_layer`](object_store::layers::build_prometheus_metrics_layer).
const READ_CACHE_DIR: &str = "greptimedb/object_cache/read";
const READ_CACHE_DIR: &str = "cache/object/read";

/// Cache value for read file
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion src/object-store/tests/object_store_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use opendal::services::{Azblob, Gcs, Oss};
use opendal::{EntryMode, OperatorBuilder};

/// Duplicate of the constant in `src/layers/lru_cache/read_cache.rs`
const READ_CACHE_DIR: &str = "greptimedb/object_cache/read";
const READ_CACHE_DIR: &str = "cache/object/read";

async fn test_object_crud(store: &ObjectStore) -> Result<()> {
// Create object handler.
Expand Down

0 comments on commit 5207ff8

Please sign in to comment.