mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-25 03:29:10 +08:00
fix compilation error
This commit is contained in:
parent
95dc977608
commit
3222d40871
@ -173,9 +173,10 @@ func (s *Store) Close() {
|
||||
}
|
||||
}
|
||||
func (s *Store) Write(i VolumeId, n *Needle) (size uint32, err error) {
|
||||
if v := s.volumes[i]; v != nil && !v.readOnly {
|
||||
if v := s.volumes[i]; v != nil {
|
||||
if v.readOnly {
|
||||
err = errors.New("Volume " + i + " is read only!")
|
||||
err = errors.New("Volume " + i.String() + " is read only!")
|
||||
return
|
||||
} else {
|
||||
size, err = v.write(n)
|
||||
if err != nil && s.volumeSizeLimit < v.ContentSize()+uint64(size) && s.volumeSizeLimit >= v.ContentSize() {
|
||||
@ -188,7 +189,7 @@ func (s *Store) Write(i VolumeId, n *Needle) (size uint32, err error) {
|
||||
return
|
||||
}
|
||||
log.Println("volume", i, "not found!")
|
||||
err = errors.New("Volume " + i + " not found!")
|
||||
err = errors.New("Volume " + i.String() + " not found!")
|
||||
return
|
||||
}
|
||||
func (s *Store) Delete(i VolumeId, n *Needle) (uint32, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user