Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Conversation

@bboreham
Copy link
Contributor

Revised version of #1928, with BoltDB specifics pulled out to a separate package.

We have a very simple persistence interface, just Load and Save an interface{}, with serialization (Gob) hidden behind the abstraction.

Partial fix of #678

@bboreham bboreham added this to the 1.5.0 milestone Feb 12, 2016
@rade
Copy link
Member

rade commented Feb 12, 2016

It seems odd that the key is supplied as a []byte rather than a string.

@awh awh self-assigned this Feb 12, 2016
@awh
Copy link
Contributor

awh commented Feb 12, 2016

It seems odd that the key is supplied as a []byte rather than a string.

Perhaps this is some artefact of the implementation (mmap'ed B+Tree) that is leaking out for efficiency purposes?

@awh awh assigned bboreham and unassigned awh Feb 12, 2016
@bboreham bboreham force-pushed the issues/678-persist-ipam2 branch from c06b809 to fea03bf Compare February 12, 2016 13:37
@bboreham bboreham assigned awh and unassigned bboreham Feb 12, 2016
@awh awh assigned bboreham and unassigned awh Feb 12, 2016
@awh
Copy link
Contributor

awh commented Feb 12, 2016

It seems odd that the key is supplied as a []byte rather than a string.

Perhaps this is some artefact of the implementation (mmap'ed B+Tree) that is leaking out for efficiency purposes?

D'oh I thought you were talking about the BoltDB API 😄

@bboreham bboreham force-pushed the issues/678-persist-ipam2 branch from a19fbaf to 546f959 Compare February 12, 2016 18:16
@awh awh assigned awh and unassigned bboreham Feb 15, 2016
awh added a commit that referenced this pull request Feb 15, 2016
@awh awh merged commit 2d4d357 into master Feb 15, 2016
@awh awh deleted the issues/678-persist-ipam2 branch February 15, 2016 10:15
@awh awh mentioned this pull request Feb 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants