diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-08-08 23:57:22 -0700 |
| commit | ed154053c833f9bcce9094e535e2adc0a0397e46 (patch) | |
| tree | 40dc16b76a12929bc8ac7af0549ccf65316e9011 /go/replication | |
| parent | b27947b3550dfdf091010bd2607b8c36a5dca049 (diff) | |
| download | seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.tar.xz seaweedfs-ed154053c833f9bcce9094e535e2adc0a0397e46.zip | |
switching to temporarily use glog library
Diffstat (limited to 'go/replication')
| -rw-r--r-- | go/replication/store_replicate.go | 6 | ||||
| -rw-r--r-- | go/replication/volume_growth.go | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/go/replication/store_replicate.go b/go/replication/store_replicate.go index bdc13ee3b..de2f3fcd8 100644 --- a/go/replication/store_replicate.go +++ b/go/replication/store_replicate.go @@ -4,7 +4,7 @@ import ( "bytes" "code.google.com/p/weed-fs/go/operation" "code.google.com/p/weed-fs/go/storage" - "log" + "code.google.com/p/weed-fs/go/glog" "net/http" "strconv" ) @@ -50,7 +50,7 @@ func ReplicatedWrite(masterNode string, s *storage.Store, volumeId storage.Volum func ReplicatedDelete(masterNode string, store *storage.Store, volumeId storage.VolumeId, n *storage.Needle, r *http.Request) (ret uint32) { ret, err := store.Delete(volumeId, n) if err != nil { - log.Println("delete error:", err) + glog.V(0).Infoln("delete error:", err) return } @@ -89,7 +89,7 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId stor } return ret } else { - log.Println("Failed to lookup for", volumeId, lookupErr.Error()) + glog.V(0).Infoln("Failed to lookup for", volumeId, lookupErr.Error()) } return false } diff --git a/go/replication/volume_growth.go b/go/replication/volume_growth.go index d5950790d..759eb19a7 100644 --- a/go/replication/volume_growth.go +++ b/go/replication/volume_growth.go @@ -6,7 +6,7 @@ import ( "code.google.com/p/weed-fs/go/topology" "errors" "fmt" - "log" + "code.google.com/p/weed-fs/go/glog" "math/rand" "sync" ) @@ -204,9 +204,9 @@ func (vg *VolumeGrowth) grow(topo *topology.Topology, vid storage.VolumeId, repT vi := storage.VolumeInfo{Id: vid, Size: 0, RepType: repType, Version: storage.CurrentVersion} server.AddOrUpdateVolume(vi) topo.RegisterVolumeLayout(&vi, server) - log.Println("Created Volume", vid, "on", server) + glog.V(0).Infoln("Created Volume", vid, "on", server) } else { - log.Println("Failed to assign", vid, "to", servers, "error", err) + glog.V(0).Infoln("Failed to assign", vid, "to", servers, "error", err) return errors.New("Failed to assign " + vid.String()) } } |
