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

Factor out database handling code from ubridge resource #67

Open
prajnoha opened this issue Feb 15, 2021 · 0 comments
Open

Factor out database handling code from ubridge resource #67

prajnoha opened this issue Feb 15, 2021 · 0 comments

Comments

@prajnoha
Copy link
Member

prajnoha commented Feb 15, 2021

The ubridge resource uses kv-store resource internally for its database and it adds some more abstraction on top of the pure "kv-store":

struct kv_value {                                 
        uint64_t seqnum;
        sid_ucmd_kv_flags_t flags;
        char data[]; /* contains both internal and external data */
} __attribute__((packed));  

...and various related functions to manipulate with struct kv_value.

It would be nice if we could separate all these kv-store extras into a separate file with its own internal interface for ubridge OR alternatively even a completely new resource built on top of kv-store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant