Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for if (0.19 sec)

  1. cmd/erasure-healing.go

    		return true
    	case errors.Is(erErr, errFileCorrupt):
    		return true
    	}
    	if erErr == nil {
    		if meta.XLV1 {
    			// Legacy means heal always
    			// always check first.
    			return true
    		}
    		if !meta.Deleted && !meta.IsRemote() {
    			// If xl.meta was read fine but there may be problem with the part.N files.
    			if IsErr(dataErr, []error{
    				errFileNotFound,
    				errFileVersionNotFound,
    				errFileCorrupt,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    		}
    
    		if vnf == len(readers) {
    			return errVolumeNotFound
    		}
    
    		// Break if all at EOF or error.
    		if atEOF+hasErr == len(readers) {
    			if hasErr > 0 && opts.finished != nil {
    				opts.finished(errs)
    			}
    			break
    		}
    
    		if fnf == len(readers) {
    			return errFileNotFound
    		}
    
    		if agree == len(readers) {
    			// Everybody agreed
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    	}
    
    	// Guess content-type from the extension if possible.
    	if userDefined["content-type"] == "" {
    		userDefined["content-type"] = mimedb.TypeByExtension(path.Ext(object))
    	}
    
    	// if storageClass is standard no need to save it as part of metadata.
    	if userDefined[xhttp.AmzStorageClass] == storageclass.STANDARD {
    		delete(userDefined, xhttp.AmzStorageClass)
    	}
    
    	if opts.WantChecksum != nil && opts.WantChecksum.Type.IsSet() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

       * until one is ready. If there are no ready queues, or if other threads have everything under
       * control this will return null. If there is more than a single task ready to execute immediately
       * this will start another thread to handle that work.
       */
      fun awaitTaskToRun(): Task? {
        lock.assertHeld()
    
        while (true) {
          if (readyQueues.isEmpty()) {
            return null // Nothing to do.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. cmd/erasure.go

    	var scanningInfos, healingInfos []DiskInfo
    
    	for i, info := range infos {
    		// Check if one of the drives in the set is being healed.
    		// this information is used by scanner to skip healing
    		// this erasure set while it calculates the usage.
    		if info.Error != "" || disks[i] == nil {
    			continue
    		}
    		if info.Healing {
    			healing++
    			if inclHealing {
    				healingDisks = append(healingDisks, disks[i])
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  6. migrator/migrator.go

    			for _, alias := range aliases {
    				if strings.HasPrefix(fullDataType, alias) {
    					isSameType = true
    					break
    				}
    			}
    
    			if !isSameType {
    				alterColumn = true
    			}
    		}
    	}
    
    	if !isSameType {
    		// check size
    		if length, ok := columnType.Length(); length != int64(field.Size) {
    			if length > 0 && field.Size > 0 {
    				alterColumn = true
    			} else {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  7. cmd/erasure-metadata.go

    	// Update storage class
    	if fi.TransitionTier != "" {
    		objInfo.StorageClass = fi.TransitionTier
    	} else if sc, ok := fi.Metadata[xhttp.AmzStorageClass]; ok {
    		objInfo.StorageClass = sc
    	} else {
    		objInfo.StorageClass = globalMinioDefaultStorageClass
    	}
    
    	// set restore status for transitioned object
    	restoreHdr, ok := fi.Metadata[xhttp.AmzRestore]
    	if ok {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  8. scan.go

    				if !update {
    					if !isPtr {
    						elem = elem.Elem()
    					}
    					if isArrayKind {
    						if reflectValue.Len() >= int(db.RowsAffected) {
    							reflectValue.Index(int(db.RowsAffected - 1)).Set(elem)
    						}
    					} else {
    						reflectValue = reflect.Append(reflectValue, elem)
    					}
    				}
    			}
    
    			if !update {
    				db.Statement.ReflectValue.Set(reflectValue)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    	if countErrs(errs, errDiskAccessDenied) == len(errs) {
    		return errDiskAccessDenied
    	}
    
    	if countErrs(errs, errFileAccessDenied) == len(errs) {
    		return errDiskAccessDenied
    	}
    
    	if countErrs(errs, errDiskNotDir) == len(errs) {
    		return errDiskNotDir
    	}
    
    	if countErrs(errs, errFaultyDisk) == len(errs) {
    		return errFaultyDisk
    	}
    
    	if countErrs(errs, errXLBackend) == len(errs) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

      @Suppress("NOTHING_TO_INLINE")
      internal inline fun Any.assertThreadHoldsLock() {
        if (assertionsEnabled && !taskRunner.lock.isHeldByCurrentThread) {
          throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
        }
      }
    
      @Suppress("NOTHING_TO_INLINE")
      internal inline fun Any.assertThreadDoesntHoldLock() {
        if (assertionsEnabled && taskRunner.lock.isHeldByCurrentThread) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
Back to top