@@ -401,6 +401,16 @@ MISC OPTIONS:
401
401
" and then 125 MB for the rest of parts" ,
402
402
},
403
403
404
+ cli.BoolFlag {
405
+ Name : "enable-patch" ,
406
+ Usage : "Use PATCH method to upload object data changes to s3. Yandex only. (default: off)" ,
407
+ },
408
+
409
+ cli.BoolFlag {
410
+ Name : "drop-patch-conflicts" ,
411
+ Usage : "Drop local changes in case of conflicting concurrent PATCH updates. (default: off)" ,
412
+ },
413
+
404
414
cli.IntFlag {
405
415
Name : "max-merge-copy" ,
406
416
Value : 0 ,
@@ -823,6 +833,8 @@ func PopulateFlags(c *cli.Context) (ret *FlagStorage) {
823
833
CachePath : c .String ("cache" ),
824
834
MaxDiskCacheFD : int64 (c .Int ("max-disk-cache-fd" )),
825
835
CacheFileMode : os .FileMode (c .Int ("cache-file-mode" )),
836
+ UsePatch : c .Bool ("enable-patch" ),
837
+ DropPatchConflicts : c .Bool ("drop-patch-conflicts" ),
826
838
827
839
// Common Backend Config
828
840
Endpoint : c .String ("endpoint" ),
@@ -886,7 +898,7 @@ func PopulateFlags(c *cli.Context) (ret *FlagStorage) {
886
898
panic ("Unknown --iam-flavor: " + config .IAMFlavor )
887
899
}
888
900
listType := c .String ("list-type" )
889
- isYandex := strings .Index (flags .Endpoint , "yandex" ) != - 1
901
+ isYandex := strings .Contains (flags .Endpoint , "yandex" )
890
902
if isYandex && ! c .IsSet ("no-specials" ) {
891
903
flags .EnableSpecials = true
892
904
}
0 commit comments