mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-21 21:44:22 +02:00
Issue 11: Failed to write to replicas for volumen 3
Avoid unnecessary master lookup
This commit is contained in:
1 parent
ccab4217e4
commit
ecd0399f8d
2 files changed
+20
-9
No files matched your search
@@ -73,6 +73,9 @@ func (v *Volume) readSuperBlock() {
|
||||
v.replicaType, _ = NewReplicationTypeFromByte(header[1])
|
||||
}
|
||||
}
|
||||
func (v *Volume) NeedToReplicate() bool{
|
||||
return v.replicaType.GetCopyCount()>1
|
||||
}
|
||||
|
||||
func (v *Volume) write(n *Needle) uint32 {
|
||||
v.accessLock.Lock()
|
||||
|
||||
Reference in new issue
Block a user