diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-03-27 16:34:58 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-03-27 16:34:58 -0700 |
| commit | 020ba6c9a85efd9f2bf5f3c7ce96b38857f2128e (patch) | |
| tree | 2304a6f6460dd3cc80249cc6877c422e1c951d5d /go/util | |
| parent | add99ed57efb52416ee8931fa5a67e706ce089a2 (diff) | |
| download | seaweedfs-020ba6c9a85efd9f2bf5f3c7ce96b38857f2128e.tar.xz seaweedfs-020ba6c9a85efd9f2bf5f3c7ce96b38857f2128e.zip | |
add leveldb support for needle map
This supposedly should reduce memory consumption. However, for tests
with millions of, this shows consuming more memories. Need to see
whether this will work out. If not, later boltdb will be tested.
Diffstat (limited to 'go/util')
| -rw-r--r-- | go/util/http_util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/util/http_util.go b/go/util/http_util.go index 72cab76e1..52579d746 100644 --- a/go/util/http_util.go +++ b/go/util/http_util.go @@ -26,12 +26,12 @@ func init() { func PostBytes(url string, body []byte) ([]byte, error) { r, err := client.Post(url, "application/octet-stream", bytes.NewReader(body)) if err != nil { - return nil, err + return nil, fmt.Errorf("Post to %s: %v", url, err) } defer r.Body.Close() b, err := ioutil.ReadAll(r.Body) if err != nil { - return nil, err + return nil, fmt.Errorf("Read response body: %v", err) } return b, nil } |
