mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: Rename function to NewConfigChangeEntries indicating we are not reading it from wal
This commit is contained in:
parent
4884e7d8cf
commit
a450dc7f91
@ -532,7 +532,7 @@ func bootstrapWALFromSnapshot(cfg config.ServerConfig, snapshot *raftpb.Snapshot
|
||||
if cfg.ForceNewCluster {
|
||||
// discard the previously uncommitted entries
|
||||
bwal.ents = bwal.CommitedEntries()
|
||||
entries := bwal.ConfigChangeEntries()
|
||||
entries := bwal.NewConfigChangeEntries()
|
||||
// force commit config change entries
|
||||
bwal.AppendAndCommitEntries(entries)
|
||||
cfg.Logger.Info(
|
||||
@ -657,7 +657,7 @@ func (wal *bootstrappedWAL) CommitedEntries() []raftpb.Entry {
|
||||
return wal.ents
|
||||
}
|
||||
|
||||
func (wal *bootstrappedWAL) ConfigChangeEntries() []raftpb.Entry {
|
||||
func (wal *bootstrappedWAL) NewConfigChangeEntries() []raftpb.Entry {
|
||||
return serverstorage.CreateConfigChangeEnts(
|
||||
wal.lg,
|
||||
serverstorage.GetIDs(wal.lg, wal.snapshot, wal.ents),
|
||||
|
Loading…
x
Reference in New Issue
Block a user