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 mysten infra ptr with new db map #4496

Merged
merged 4 commits into from
Sep 6, 2022

Conversation

oxade
Copy link
Contributor

@oxade oxade commented Sep 6, 2022

This exposes latest mysten infra features
This PR also uses a safer DBDump which enforces dump can only be called in secondary/read-only mode
We also expose better DBMap configurations.

@oxade oxade requested a review from andll September 6, 2022 21:07
@@ -1418,7 +1418,7 @@ impl<T: ModuleResolver> ModuleResolver for ResolverWrapper<T> {
// The primary key type for object storage.
#[serde_as]
#[derive(Eq, PartialEq, Clone, Copy, PartialOrd, Ord, Hash, Serialize, Deserialize, Debug)]
pub(crate) struct ObjectKey(pub ObjectID, pub VersionNumber);
pub struct ObjectKey(pub ObjectID, pub VersionNumber);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why this needed to change?

Copy link
Contributor Author

@oxade oxade Sep 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why this needed to change?

Without this, we will not be able to dump/debug the DB in external utils as this will leak the private type.

@oxade oxade marked this pull request as ready for review September 6, 2022 21:33
@oxade oxade enabled auto-merge (squash) September 6, 2022 21:34
@oxade oxade merged commit 4c4b1d6 into main Sep 6, 2022
@oxade oxade deleted the update_mysten_infra_ptr_with_new_db_map branch September 6, 2022 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants