Anis Elleuch
8ce6f43e35
Stop mirror/diff when difference() sends error ( #2049 )
...
The caller of difference() now receives errors so it can
stop mirroring or difference calculation.
2017-03-01 11:06:26 -08:00
Anis Elleuch
ace3f452c3
mirror: Mirror buckets if only alias is specified ( #2006 )
2017-02-12 11:20:05 -08:00
Aaron Walker
bca93f6c83
Mirror: normalize keys before comparing ( #1978 )
...
vendorize golang.org/x/text/unicode/norm dependency
vendorize golang.org/x/text/transform dependency
add example of multiple encodings
2017-01-24 11:51:59 -08:00
Harshavardhana
9cf76b1233
api: StatObject if listing returned missing file. ( #1945 )
2017-01-04 18:36:09 -08:00
Harshavardhana
64166319ee
cp/diff/mirror: Cleanup code and deprecate unnecessary flags. ( #1914 )
...
This fix also fixes an apparent crash found in diff.
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4bdc07]
goroutine 84 [running]:
panic(0x810ea0, 0xc4200120e0)
/home/builder/.gimme/versions/go1.7.3.linux.amd64/src/runtime/panic.go:500 +0x1a1
github.com/minio/mc/cmd.objectDifference.func1(0xc4200880a8, 0xc42042ee56, 0xc420315ec0, 0xc4200880b0, 0xc42042ee57, 0xc420315f20, 0xc42042ee54, 0xc42042ee55, 0xc420315501, 0xc4200880a0, ...)
/home/builder/mygo/src/github.com/minio/mc/cmd/difference.go:109 +0x197
created by github.com/minio/mc/cmd.objectDifference
/home/builder/mygo/src/github.com/minio/mc/cmd/difference.go:180 +0x2f5
```
2016-12-06 01:41:22 -08:00
Harshavardhana
cf89d74561
Vendorize new minio-go code. ( #1891 )
...
This fixes #1889 .
```sh
mc mirror -w
```
Now runs continous even when the source is not available.
Reconnects indefinitely in a binomially increasing fashion
and also allows jitter so that the retry has a nice
distribution as well.
This allows for 'mc mirror -w' to run continously without
further monitoring.
2016-11-20 16:31:53 -08:00
Harshavardhana
38aec4d875
mirror and cp should print size in --json mode. ( #1890 )
...
```sh
mc cp -r --json /usr/bin /tmp | jq .
...
...
{
"status": "success",
"source": "/usr/bin/gcm-viewer",
"target": "/tmp/bin/gcm-viewer",
"size": 87128,
"totalCount": 2602,
"totalSize": 677422730
}
```
This allows scripts to build progress around this data.
2016-11-20 14:46:24 -08:00
Bala FA
6de2b4559e
Refactor rm command. ( #1855 )
...
This patch makes rm command to use minio-go.RemoveObjects() to removeobjects recursively.
2016-10-17 20:24:09 -07:00
Harshavardhana
2ea2ec90d2
Rename mc --> cmd
2016-08-17 18:26:18 -07:00