2019-10-11 18:56:59 +00:00
|
|
|
// +build !enterprise
|
|
|
|
|
|
|
|
package raft
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
2021-02-10 14:58:18 +00:00
|
|
|
const readReplicasAllowed = false
|
2020-04-03 23:13:51 +00:00
|
|
|
|
2021-02-10 14:58:18 +00:00
|
|
|
// AddReadReplicaPeer adds a new server to the raft cluster which does not have
|
|
|
|
// voting rights but gets all the data replicated to it.
|
|
|
|
func (b *RaftBackend) AddReadReplicaPeer(ctx context.Context, peerID, clusterAddr string) error {
|
2019-10-11 18:56:59 +00:00
|
|
|
return errors.New("not implemented")
|
|
|
|
}
|