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

optimization of write-to/read-from mutation log file may cause problem #400

Open
qinzuoyan opened this issue Jun 14, 2016 · 0 comments
Open

Comments

@qinzuoyan
Copy link
Collaborator

// write-to/read-from mutation log file, for better performance
//
// TODO(qinzuoyan): the optimization is to marshall code as int but not string,
// but this may cause problem, because log may be used by different program and
// the code map may change:
//   - the private log may be transfered to other node with different program
//   - the private/shared log may be replayed by different program when server restart
void write_to_log_file(std::function<void(const blob&)> inserter) const;
void write_to_log_file(binary_writer& writer) const;
static mutation_ptr read_from_log_file(binary_reader& reader, dsn_message_t from);
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