Browse Source

fixing of typos

pull/853/head
Sergey 6 years ago
parent
commit
aa5ccff6d2
No known key found for this signature in database GPG Key ID: E291860300B0B63C
  1. 2
      weed/command/backup.go
  2. 2
      weed/command/upload.go
  3. 2
      weed/operation/compress.go
  4. 2
      weed/security/guard.go
  5. 4
      weed/topology/topology_vacuum.go

2
weed/command/backup.go

@ -41,7 +41,7 @@ var cmdBackup = &Command{
But it's tricky to incrementally copy the differences. But it's tricky to incrementally copy the differences.
The complexity comes when there are multiple addition, deletion and compaction. The complexity comes when there are multiple addition, deletion and compaction.
This tool will handle them correctly and efficiently, avoiding unnecessary data transporation.
This tool will handle them correctly and efficiently, avoiding unnecessary data transportation.
`, `,
} }

2
weed/command/upload.go

@ -53,7 +53,7 @@ var cmdUpload = &Command{
All files under the folder and subfolders will be uploaded, each with its own file key. All files under the folder and subfolders will be uploaded, each with its own file key.
Optional parameter "-include" allows you to specify the file name patterns. Optional parameter "-include" allows you to specify the file name patterns.
If "maxMB" is set to a positive number, files larger than it would be split into chunks and uploaded separatedly.
If "maxMB" is set to a positive number, files larger than it would be split into chunks and uploaded separately.
The list of file ids of those chunks would be stored in an additional chunk, and this additional chunk's file id would be returned. The list of file ids of those chunks would be stored in an additional chunk, and this additional chunk's file id would be returned.
`, `,

2
weed/operation/compress.go

@ -30,7 +30,7 @@ func IsGzippable(ext, mtype string, data []byte) bool {
return false return false
} }
// by file name extention
// by file name extension
switch ext { switch ext {
case ".zip", ".rar", ".gz", ".bz2", ".xz": case ".zip", ".rar", ".gz", ".bz2", ".xz":
return false return false

2
weed/security/guard.go

@ -158,5 +158,5 @@ func (g *Guard) checkJwt(w http.ResponseWriter, r *http.Request) error {
} }
glog.V(1).Infof("No permission from %s", r.RemoteAddr) glog.V(1).Infof("No permission from %s", r.RemoteAddr)
return fmt.Errorf("No write permisson from %s", r.RemoteAddr)
return fmt.Errorf("No write permission from %s", r.RemoteAddr)
} }

4
weed/topology/topology_vacuum.go

@ -82,7 +82,7 @@ func batchVacuumVolumeCompact(vl *VolumeLayout, vid storage.VolumeId, locationli
func batchVacuumVolumeCommit(vl *VolumeLayout, vid storage.VolumeId, locationlist *VolumeLocationList) bool { func batchVacuumVolumeCommit(vl *VolumeLayout, vid storage.VolumeId, locationlist *VolumeLocationList) bool {
isCommitSuccess := true isCommitSuccess := true
for _, dn := range locationlist.list { for _, dn := range locationlist.list {
glog.V(0).Infoln("Start Commiting vacuum", vid, "on", dn.Url())
glog.V(0).Infoln("Start Committing vacuum", vid, "on", dn.Url())
err := operation.WithVolumeServerClient(dn.Url(), func(volumeServerClient volume_server_pb.VolumeServerClient) error { err := operation.WithVolumeServerClient(dn.Url(), func(volumeServerClient volume_server_pb.VolumeServerClient) error {
_, err := volumeServerClient.VacuumVolumeCommit(context.Background(), &volume_server_pb.VacuumVolumeCommitRequest{ _, err := volumeServerClient.VacuumVolumeCommit(context.Background(), &volume_server_pb.VacuumVolumeCommitRequest{
VolumdId: uint32(vid), VolumdId: uint32(vid),
@ -93,7 +93,7 @@ func batchVacuumVolumeCommit(vl *VolumeLayout, vid storage.VolumeId, locationlis
glog.Errorf("Error when committing vacuum %d on %s: %v", vid, dn.Url(), err) glog.Errorf("Error when committing vacuum %d on %s: %v", vid, dn.Url(), err)
isCommitSuccess = false isCommitSuccess = false
} else { } else {
glog.V(0).Infof("Complete Commiting vacuum %d on %s", vid, dn.Url())
glog.V(0).Infof("Complete Committing vacuum %d on %s", vid, dn.Url())
} }
if isCommitSuccess { if isCommitSuccess {
vl.SetVolumeAvailable(dn, vid) vl.SetVolumeAvailable(dn, vid)

Loading…
Cancel
Save