diff options
| author | Chris Lu <chris.lu@gmail.com> | 2012-12-17 01:17:06 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2012-12-17 01:17:06 -0800 |
| commit | 8af7906b3da330575049ce6130bc8fff07573429 (patch) | |
| tree | 4fd6f48ad3c20048ad917aa6b3ac347c945105c8 | |
| parent | 6201ed537ef11f91c24c14612f1d087796e2d5f8 (diff) | |
| download | seaweedfs-8af7906b3da330575049ce6130bc8fff07573429.tar.xz seaweedfs-8af7906b3da330575049ce6130bc8fff07573429.zip | |
better log message
| -rw-r--r-- | weed-fs/src/pkg/storage/store.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed-fs/src/pkg/storage/store.go b/weed-fs/src/pkg/storage/store.go index abd336d5d..877338f04 100644 --- a/weed-fs/src/pkg/storage/store.go +++ b/weed-fs/src/pkg/storage/store.go @@ -130,7 +130,7 @@ type JoinResult struct { } func (s *Store) SetMaster(mserver string) { - s.masterNode = mserver + s.masterNode = mserver } func (s *Store) Join() error { stats := new([]*VolumeInfo) @@ -165,7 +165,8 @@ func (s *Store) Close() { func (s *Store) Write(i VolumeId, n *Needle) uint32 { if v := s.volumes[i]; v != nil { size := v.write(n) - if s.volumeSizeLimit < v.ContentSize()+uint64(size) { + if s.volumeSizeLimit < v.ContentSize()+uint64(size) && s.volumeSizeLimit >= v.ContentSize() { + log.Println("volume", i, "size is", v.ContentSize(), "close to", s.volumeSizeLimit) s.Join() } return size |
