mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
blobrepo_factory: re-export common types from repo_factory
Summary: To facilitate migration from `blobrepo_factory` to `repo_factory`, make common types the same by re-exporting them from `repo_factory` in `blobrepo_factory`. Reviewed By: ahornby Differential Revision: D27323371 fbshipit-source-id: 9b0d98fe067de7905fc923d173ba8ae24eaa0d75
This commit is contained in:
parent
f902acfcd1
commit
3ef58dda72
@ -46,6 +46,7 @@ phases = { version = "0.1.0", path = "../../phases" }
|
||||
readonlyblob = { version = "0.1.0", path = "../../blobstore/readonlyblob" }
|
||||
redactedblobstore = { version = "0.1.0", path = "../../blobstore/redactedblobstore" }
|
||||
repo_blobstore = { version = "0.1.0", path = "../repo_blobstore" }
|
||||
repo_factory = { version = "0.1.0", path = "../../repo_factory" }
|
||||
scuba_ext = { version = "0.1.0", path = "../../common/scuba_ext" }
|
||||
segmented_changelog = { version = "0.1.0", path = "../../segmented_changelog" }
|
||||
skeleton_manifest = { version = "0.1.0", path = "../../derived_data/skeleton_manifest" }
|
||||
|
@ -68,14 +68,7 @@ use virtually_sharded_blobstore::VirtuallyShardedBlobstore;
|
||||
|
||||
pub use blobstore_factory::{BlobstoreOptions, PutBehaviour, ReadOnlyStorage};
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
pub enum Caching {
|
||||
// Usize in Enabled and CachelibOnlyBlobstore represents the number of cache shards. If zero,
|
||||
// sharding is not used.
|
||||
Enabled(usize),
|
||||
CachelibOnlyBlobstore(usize),
|
||||
Disabled,
|
||||
}
|
||||
pub use repo_factory::Caching;
|
||||
|
||||
const BLOBSTORE_BLOBS_CACHE_POOL: &str = "blobstore-blobs";
|
||||
const BLOBSTORE_PRESENCE_CACHE_POOL: &str = "blobstore-presence";
|
||||
|
Loading…
Reference in New Issue
Block a user