mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Fix minimum replication workers started (#10560)
This PR also fixes GetReplicationConfiguration permission in web-handlers.go to use bucket as resource
This commit is contained in:
@@ -304,6 +304,11 @@ var (
|
||||
)
|
||||
|
||||
func newReplicationState() *replicationState {
|
||||
|
||||
// fix minimum concurrent replication to 1 for single CPU setup
|
||||
if globalReplicationConcurrent == 0 {
|
||||
globalReplicationConcurrent = 1
|
||||
}
|
||||
rs := &replicationState{
|
||||
replicaCh: make(chan ObjectInfo, globalReplicationConcurrent*2),
|
||||
}
|
||||
|
||||
@@ -1025,7 +1025,7 @@ func (web *webAPIHandlers) Upload(w http.ResponseWriter, r *http.Request) {
|
||||
BucketName: bucket,
|
||||
ConditionValues: getConditionValues(r, "", claims.AccessKey, claims.Map()),
|
||||
IsOwner: owner,
|
||||
ObjectName: object,
|
||||
ObjectName: "",
|
||||
Claims: claims.Map(),
|
||||
}) {
|
||||
replPerms = ErrNone
|
||||
|
||||
Reference in New Issue
Block a user