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

when to release the raft_entry_data_t buf resource #52

Open
kevin-gjm opened this issue Jan 17, 2018 · 0 comments
Open

when to release the raft_entry_data_t buf resource #52

kevin-gjm opened this issue Jan 17, 2018 · 0 comments

Comments

@kevin-gjm
Copy link

kevin-gjm commented Jan 17, 2018

Hi:
Thank you for this wonderful project!
I have a few questions about the entry log I don't quite understand.

typedef struct
{
    void *buf;

    unsigned int len;
} raft_entry_data_t;

int the raft.h use raft_entry_data_t store entry.when to release the buf ? ?
when to call the log_pop and log_poll (not have conflicting entries) ??
And if we use variable-length entry how to handle it ??

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

No branches or pull requests

1 participant