mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(master): simplify the process of followe read jugement and resolve issues
Signed-off-by: leonrayang <chl696@sina.com>
This commit is contained in:
parent
88e0dc05dd
commit
93c516105f
@ -79,6 +79,7 @@ func (m *Server) isFollowerRead(r *http.Request) (followerRead bool) {
|
||||
|
||||
followerRead = false
|
||||
if r.URL.Path == proto.ClientDataPartitions && !m.partition.IsRaftLeader() {
|
||||
|
||||
if volName, err := parseAndExtractName(r); err == nil {
|
||||
log.LogInfof("action[interceptor] followerRead vol[%v]", volName)
|
||||
if followerRead = m.cluster.followerReadManager.IsVolViewReady(volName); followerRead {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user