Skip to content

Commit

Permalink
fix: Modify a compilation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
panlei-coder committed Feb 6, 2025
1 parent 6910a31 commit 9367839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raft/snapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ braft::FileAdaptor* PosixFileSystemAdaptor::open(const std::string& path, int of
new_meta.set_last_included_term(last_log_term);
braft::ConfigurationEntry conf_entry;
braft::ConfigurationEntry learner_conf_entry;
PRAFT.GetConfigurationByIndex(last_log_index, &conf_entry, &learner_conf_entry);
RAFT_INST.GetConfigurationByIndex(last_log_index, &conf_entry, &learner_conf_entry);
new_meta.clear_peers();
for (auto iter = conf_entry.conf.begin(); iter != conf_entry.conf.end(); ++iter) {
*new_meta.add_peers() = iter->to_string();
Expand Down

0 comments on commit 9367839

Please sign in to comment.