Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pearl to v0.9.6 #859

Merged
merged 5 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Bob versions changelog


#### Updated

- Pearl updated to v0.9.6 (#859)


## [v2.0.14-alpha.9] - 2023-10-19
Expand Down
2 changes: 1 addition & 1 deletion bob-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tower = "0.4"
tower-service = "0.3"

[dependencies.pearl]
version = "=0.9.5"
version = "=0.9.6"

[dependencies.tokio]
version = "1.14"
Expand Down
3 changes: 1 addition & 2 deletions bob-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pub(crate) mod prelude {
pub use anyhow::{Context, Result as AnyResult};
pub use bob_common::{
configs::{
cluster::Cluster as ClusterConfig,
node::{BackendType, Node as NodeConfig, Pearl as PearlConfig},
},
data::{BobData, BobKey, BobMeta, BobOptions, DiskPath, VDiskId},
Expand All @@ -36,7 +35,7 @@ pub(crate) mod prelude {
Error as PearlError, ErrorKind as PearlErrorKind, Key as KeyTrait, Storage,
};
pub use std::{
collections::{hash_map::Entry, HashMap},
collections::HashMap,
convert::TryInto,
fmt::{Debug, Display, Formatter, Result as FmtResult},
fs::Metadata,
Expand Down
1 change: 1 addition & 0 deletions bob-backend/src/pearl/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use crate::prelude::*;

use super::{core::BackendResult, Pearl as PearlBackend};
use crate::core::{BackendStorage, Operation};
use bob_common::configs::cluster::Cluster as ClusterConfig;

static DISK_NAME: &str = "disk1";
static PEARL_PATH: &str = "/tmp/d1/";
Expand Down
4 changes: 2 additions & 2 deletions bob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metrics = { version = "0.17", features = ["std"] }
mockall = "0.10.2"
prost = "0.9"
ring = "0.16"
rocket = { version = "0.5.0-rc.2", features = ["json", "uuid"] }
rocket = { version = "0.5.0", features = ["json", "uuid"] }
serde = "1.0"
serde_derive = "1.0"
serde_yaml = "0.8"
Expand All @@ -40,7 +40,7 @@ tower = "0.4"
tower-service = "0.3"

[dependencies.pearl]
version = "=0.9.5"
version = "=0.9.6"

[dependencies.tokio]
version = "1.14"
Expand Down
2 changes: 1 addition & 1 deletion bob/src/api/http/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl<'r> FromRequest<'r> for CopyObjectHeaders {
.and_then(|x| x.parse().ok())
{
Some(key) => key,
None => return Outcome::Forward(()),
None => return Outcome::Forward(Status::BadRequest),
};
Outcome::Success(CopyObjectHeaders {
if_modified_since: headers
Expand Down
2 changes: 1 addition & 1 deletion bob/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ mod prelude {
pub use std::{
collections::HashMap,
fmt::{Debug, Formatter, Result as FmtResult},
io::Write,
pin::Pin,
sync::Arc,
time::{Duration, Instant},
Expand All @@ -92,6 +91,7 @@ pub(crate) mod test_utils {
use chrono::Local;
use env_logger::fmt::{Color, Formatter as EnvFormatter};
use log::{Level, Record};
use std::io::Write;
use std::io::Result as IOResult;

use crate::prelude::*;
Expand Down
Loading