aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWine93 <wine93.info@gmail.com>2019-04-25 01:59:14 +0000
committerWine93 <wine93.info@gmail.com>2019-04-25 02:02:45 +0000
commitd2ad5905dae01a293e2aac1582e8cd6c00d25857 (patch)
tree0abfabe0b4c7b1d94eeb64f3855f83d8def9d8f2 /README.md
parent277e4d8c055e66f206f33c4b4ea3a4805008a55a (diff)
downloadseaweedfs-d2ad5905dae01a293e2aac1582e8cd6c00d25857.tar.xz
seaweedfs-d2ad5905dae01a293e2aac1582e8cd6c00d25857.zip
doc: updated to latest version
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 25f8143b6..9518bf275 100644
--- a/README.md
+++ b/README.md
@@ -125,7 +125,7 @@ Second, to store the file content, send a HTTP multi-part POST request to `url +
```
> curl -F file=@/home/chris/myphoto.jpg http://127.0.0.1:8080/3,01637037d6
-{"size": 43234}
+{"name":"myphoto.jpg","size":43234,"eTag":"1cc0118e"}
```
To update, send another POST request with updated file content.
@@ -157,7 +157,7 @@ First look up the volume server's URLs by the file's volumeId:
```
> curl http://localhost:9333/dir/lookup?volumeId=3
-{"locations":[{"publicUrl":"localhost:8080","url":"localhost:8080"}]}
+{"volumeId":"3","locations":[{"publicUrl":"localhost:8080","url":"localhost:8080"}]}
```
Since (usually) there are not too many volume servers, and volumes don't move often, you can cache the results most of the time. Depending on the replication type, one volume can have multiple replica locations. Just randomly pick one location to read.