Use S3 client for uplooads/downloads during perf test (#14570)

This commit is contained in:
Krishna Srinivas
2022-04-07 21:20:40 -07:00
committed by GitHub
parent a3e317773a
commit b35b9dcff7
4 changed files with 56 additions and 35 deletions

View File

@@ -246,10 +246,12 @@ func maxClients(f http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
globalHTTPStats.incS3RequestsIncoming()
if val := globalServiceFreeze.Load(); val != nil {
if unlock, ok := val.(chan struct{}); ok && unlock != nil {
// Wait until unfrozen.
<-unlock
if r.Header.Get(globalObjectPerfUserMetadata) == "" {
if val := globalServiceFreeze.Load(); val != nil {
if unlock, ok := val.(chan struct{}); ok && unlock != nil {
// Wait until unfrozen.
<-unlock
}
}
}