mirror of
https://github.com/minio/minio.git
synced 2025-02-23 03:22:30 -05:00
remove windows CI/CD for now (#20441)
windows has decided to be a community support only and source compile-friendly.
This commit is contained in:
parent
8a30967542
commit
70d40083e9
12
.github/workflows/go-lint.yml
vendored
12
.github/workflows/go-lint.yml
vendored
@ -21,23 +21,13 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.22.x]
|
go-version: [1.22.x]
|
||||||
os: [ubuntu-latest, Windows]
|
os: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- name: Build on ${{ matrix.os }}
|
|
||||||
if: matrix.os == 'Windows'
|
|
||||||
env:
|
|
||||||
CGO_ENABLED: 0
|
|
||||||
GO111MODULE: on
|
|
||||||
run: |
|
|
||||||
Set-MpPreference -DisableRealtimeMonitoring $true
|
|
||||||
netsh int ipv4 set dynamicport tcp start=60000 num=61000
|
|
||||||
go build --ldflags="-s -w" -o %GOPATH%\bin\minio.exe
|
|
||||||
go test -v --timeout 120m ./...
|
|
||||||
- name: Build on ${{ matrix.os }}
|
- name: Build on ${{ matrix.os }}
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
env:
|
env:
|
||||||
|
@ -556,7 +556,7 @@ func (z *erasureServerPools) getPoolInfoExistingWithOpts(ctx context.Context, bu
|
|||||||
return pinfo, z.poolsWithObject(poolObjInfos, opts), nil
|
return pinfo, z.poolsWithObject(poolObjInfos, opts), nil
|
||||||
}
|
}
|
||||||
defPool = pinfo
|
defPool = pinfo
|
||||||
if !isErrObjectNotFound(pinfo.Err) {
|
if !isErrObjectNotFound(pinfo.Err) && !isErrVersionNotFound(pinfo.Err) {
|
||||||
return pinfo, noReadQuorumPools, pinfo.Err
|
return pinfo, noReadQuorumPools, pinfo.Err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1166,13 +1166,34 @@ func (z *erasureServerPools) DeleteObject(ctx context.Context, bucket string, ob
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if opts.DataMovement {
|
||||||
|
objInfo, err = z.serverPools[pinfo.Index].DeleteObject(ctx, bucket, object, opts)
|
||||||
|
objInfo.Name = decodeDirObject(object)
|
||||||
|
return objInfo, err
|
||||||
|
}
|
||||||
|
|
||||||
// Delete concurrently in all server pools with read quorum error for unversioned objects.
|
// Delete concurrently in all server pools with read quorum error for unversioned objects.
|
||||||
if len(noReadQuorumPools) > 0 && !opts.Versioned && !opts.VersionSuspended {
|
if len(noReadQuorumPools) > 0 && !opts.Versioned && !opts.VersionSuspended {
|
||||||
return z.deleteObjectFromAllPools(ctx, bucket, object, opts, noReadQuorumPools)
|
return z.deleteObjectFromAllPools(ctx, bucket, object, opts, noReadQuorumPools)
|
||||||
}
|
}
|
||||||
objInfo, err = z.serverPools[pinfo.Index].DeleteObject(ctx, bucket, object, opts)
|
|
||||||
|
for _, pool := range z.serverPools {
|
||||||
|
objInfo, err := pool.DeleteObject(ctx, bucket, object, opts)
|
||||||
|
if err != nil && !isErrObjectNotFound(err) && !isErrVersionNotFound(err) {
|
||||||
|
objInfo.Name = decodeDirObject(object)
|
||||||
|
return objInfo, err
|
||||||
|
}
|
||||||
|
if err == nil {
|
||||||
|
objInfo.Name = decodeDirObject(object)
|
||||||
|
return objInfo, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
objInfo.Name = decodeDirObject(object)
|
objInfo.Name = decodeDirObject(object)
|
||||||
return objInfo, err
|
if opts.VersionID != "" {
|
||||||
|
return objInfo, VersionNotFound{Bucket: bucket, Object: object, VersionID: opts.VersionID}
|
||||||
|
}
|
||||||
|
return objInfo, ObjectNotFound{Bucket: bucket, Object: object}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (z *erasureServerPools) deleteObjectFromAllPools(ctx context.Context, bucket string, object string, opts ObjectOptions, poolIndices []poolErrs) (objInfo ObjectInfo, err error) {
|
func (z *erasureServerPools) deleteObjectFromAllPools(ctx context.Context, bucket string, object string, opts ObjectOptions, poolIndices []poolErrs) (objInfo ObjectInfo, err error) {
|
||||||
@ -1291,19 +1312,20 @@ func (z *erasureServerPools) DeleteObjects(ctx context.Context, bucket string, o
|
|||||||
go func(idx int, pool *erasureSets) {
|
go func(idx int, pool *erasureSets) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
objs := poolObjIdxMap[idx]
|
objs := poolObjIdxMap[idx]
|
||||||
if len(objs) > 0 {
|
if len(objs) == 0 {
|
||||||
orgIndexes := origIndexMap[idx]
|
return
|
||||||
deletedObjects, errs := pool.DeleteObjects(ctx, bucket, objs, opts)
|
|
||||||
mu.Lock()
|
|
||||||
for i, derr := range errs {
|
|
||||||
if derr != nil {
|
|
||||||
derrs[orgIndexes[i]] = derr
|
|
||||||
}
|
|
||||||
deletedObjects[i].ObjectName = decodeDirObject(deletedObjects[i].ObjectName)
|
|
||||||
dobjects[orgIndexes[i]] = deletedObjects[i]
|
|
||||||
}
|
|
||||||
mu.Unlock()
|
|
||||||
}
|
}
|
||||||
|
orgIndexes := origIndexMap[idx]
|
||||||
|
deletedObjects, errs := pool.DeleteObjects(ctx, bucket, objs, opts)
|
||||||
|
mu.Lock()
|
||||||
|
for i, derr := range errs {
|
||||||
|
if derr != nil {
|
||||||
|
derrs[orgIndexes[i]] = derr
|
||||||
|
}
|
||||||
|
deletedObjects[i].ObjectName = decodeDirObject(deletedObjects[i].ObjectName)
|
||||||
|
dobjects[orgIndexes[i]] = deletedObjects[i]
|
||||||
|
}
|
||||||
|
mu.Unlock()
|
||||||
}(idx, pool)
|
}(idx, pool)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user