This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
forked from twitter/pelikan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move datapool out into separate crate (twitter#426)
Moves the datapool out from the seg storage crate and into its own crate. Adds a basic header to file-backed datapools and introduces a new datapool for keeping content in memory with a file available to save and restore state. Minor refactoring to accomodate returning a result which allows us to better surface any issues creating the datapool. Adds a header to the datapools to allow versioning, validation, and staleness checks.
- Loading branch information
Showing
23 changed files
with
1,000 additions
and
202 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[package] | ||
name = "datapool" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Brian Martin <[email protected]>"] | ||
description = "abstractions for byte storage pools" | ||
homepage = "https://pelikan.io" | ||
repository = "https://github.com/twitter/pelikan" | ||
license = "Apache-2.0" | ||
|
||
[dependencies] | ||
blake3 = "1.3.1" | ||
common = { path = "../../common" } | ||
libc = "0.2.125" | ||
memmap2 = "0.5.3" | ||
|
||
[dev-dependencies] | ||
tempfile = "3.3.0" |
Oops, something went wrong.