Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for elseif (0.18 sec)

  1. cmd/bucket-targets.go

    					if ok {
    						if prev.Online != result.Online || !result.Online {
    							if !prev.lastHCAt.IsZero() {
    								offline = time.Since(prev.lastHCAt) + prev.offlineDuration
    							} else {
    								offline = prev.offlineDuration
    							}
    						} else if result.Online {
    							offline = prev.offlineDuration
    						}
    					}
    					lastOnline = prev.lastOnline
    					if result.Online {
    						lastOnline = time.Now()
    					}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  2. cmd/xl-storage-disk-id-check.go

    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    		atomic.StoreInt64(&e.cachedSec, t)
    	})
    	acc := e.cached.Load()
    	if lastT := atomic.LoadInt64(&e.cachedSec); lastT != t {
    		// Check if lastT was changed by someone else.
    		if atomic.CompareAndSwapInt64(&e.cachedSec, lastT, t) {
    			// Now we swap in a new.
    			newAcc := &AccElem{}
    			old := e.cached.Swap(newAcc)
    			var a AccElem
    			a.Size = atomic.LoadInt64(&old.Size)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. cmd/config-current.go

    			errs = append(errs, fmt.Errorf("Unable to apply heal config: %w", err))
    		} else {
    			globalHealConfig.Update(healCfg)
    		}
    	case config.BatchSubSys:
    		batchCfg, err := batch.LookupConfig(s[config.BatchSubSys][config.Default])
    		if err != nil {
    			errs = append(errs, fmt.Errorf("Unable to apply batch config: %w", err))
    		} else {
    			globalBatchConfig.Update(batchCfg)
    		}
    	case config.ScannerSubSys:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  4. cmd/common-main.go

    		os.Setenv("CONSOLE_ANIMATED_LOGIN", value)
    	}
    
    	// Pass on the session duration environment variable, else we will default to 12 hours
    	if valueSts := env.Get(config.EnvMinioStsDuration, ""); valueSts != "" {
    		os.Setenv("CONSOLE_STS_DURATION", valueSts)
    	} else if valueSession := env.Get(config.EnvBrowserSessionDuration, ""); valueSession != "" {
    		os.Setenv("CONSOLE_STS_DURATION", valueSession)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  5. cmd/storage-rest-server.go

    						write([]byte(err.Error()))
    					} else {
    						write([]byte{0})
    					}
    					return
    				default:
    				}
    
    				// Response not ready, write a filler byte.
    				write([]byte{32})
    				if canWrite {
    					w.(http.Flusher).Flush()
    				}
    			case err := <-doneCh:
    				if err != nil {
    					write([]byte{1})
    					write([]byte(err.Error()))
    				} else {
    					write([]byte{0})
    				}
    				return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom.go

    		if poolInfo.Decommission.Failed || poolInfo.Decommission.Canceled {
    			poolInfo.Decommission.CurrentSize = pi.Free
    		} else {
    			poolInfo.Decommission.CurrentSize = poolInfo.Decommission.StartSize + poolInfo.Decommission.BytesDone
    		}
    	} else {
    		poolInfo.Decommission = &PoolDecommissionInfo{
    			TotalSize:   pi.Total,
    			CurrentSize: pi.Free,
    		}
    	}
    	return poolInfo, nil
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  7. cmd/storage-rest-client.go

    		DstPath:   dstPath,
    		DstVolume: dstVolume,
    		FI:        fi,
    		Opts:      opts,
    	}
    	var resp *RenameDataResp
    	if fi.Data == nil {
    		resp, err = storageRenameDataRPC.Call(ctx, client.gridConn, &params)
    	} else {
    		resp, err = storageRenameDataInlineRPC.Call(ctx, client.gridConn, &RenameDataInlineHandlerParams{params})
    	}
    	if err != nil {
    		return res, toStorageErr(err)
    	}
    
    	defer storageRenameDataRPC.PutResponse(resp)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  8. cmd/admin-bucket-handlers.go

    		return
    	}
    
    	target.SourceBucket = bucket
    	var ops []madmin.TargetUpdateType
    	if update {
    		ops = madmin.GetTargetUpdateOps(r.Form)
    	} else {
    		var exists bool // true if arn exists
    		target.Arn, exists = globalBucketTargetSys.getRemoteARN(bucket, &target, "")
    		if exists && target.Arn != "" { // return pre-existing ARN
    			data, err := json.Marshal(target.Arn)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. internal/rest/client.go

    		resp.StatusCode != http.StatusPartialContent &&
    		resp.StatusCode != http.StatusNoContent {
    		respTrace, err = httputil.DumpResponse(resp, true)
    		if err != nil {
    			return
    		}
    	} else {
    		respTrace, err = httputil.DumpResponse(resp, false)
    		if err != nil {
    			return
    		}
    	}
    
    	// Write response to trace output.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  10. internal/grid/grid_test.go

    		time.Sleep(time.Millisecond)
    	}
    	cancel()
    	<-serverCanceled
    	local.debugMsg(debugIsOutgoingClosed, st.muxID, func(closed bool) {
    		if !closed {
    			t.Error("expected outgoing closed")
    		} else {
    			t.Log("outgoing was closed")
    		}
    	})
    
    	// Drain responses and check if error propagated.
    	err = st.Results(func(b []byte) error {
    		return nil
    	})
    	if !errors.Is(err, context.Canceled) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
Back to top