Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 322 for else (0.26 sec)

  1. cmd/data-usage-cache_gen.go

    			o = msgp.AppendNil(o)
    		} else {
    			o, err = z.ReplicationStats.MarshalMsg(o)
    			if err != nil {
    				err = msgp.WrapError(err, "ReplicationStats")
    				return
    			}
    		}
    	}
    	if (zb0001Mask & 0x100) == 0 { // if not omitted
    		// string "ats"
    		o = append(o, 0xa3, 0x61, 0x74, 0x73)
    		if z.AllTierStats == nil {
    			o = msgp.AppendNil(o)
    		} else {
    			o, err = z.AllTierStats.MarshalMsg(o)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 100.8K bytes
    - Viewed (0)
  2. docs/debugging/xattr/main.go

    		}
    	} else {
    		if name == "" {
    			log.Fatalln("you must specify an attribute name for reading")
    		}
    		var names []string
    		if name == "." {
    			attrs, err := listxattr(path)
    			if err != nil {
    				log.Fatalln(fmt.Errorf("listing attributes failed with: %v", err))
    			}
    			names = append(names, attrs...)
    		} else {
    			names = append(names, name)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  3. docs/debugging/s3-check-md5/main.go

    	})
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	if debug {
    		s3Client.TraceOn(os.Stderr)
    	}
    
    	var buckets []string
    	if bucket != "" {
    		buckets = append(buckets, bucket)
    	} else {
    		bucketsInfo, err := s3Client.ListBuckets(context.Background())
    		if err != nil {
    			log.Fatalln(err)
    		}
    		for _, b := range bucketsInfo {
    			buckets = append(buckets, b.Name)
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    		} else if shardFileSize < inlineBlock/8 {
    			inlineBuffers = make([]*bytes.Buffer, len(onlineDisks))
    		}
    	} else {
    		// If compressed, use actual size to determine.
    		if sz := erasure.ShardFileSize(data.ActualSize()); sz > 0 {
    			if !opts.Versioned && sz < inlineBlock {
    				inlineBuffers = make([]*bytes.Buffer, len(onlineDisks))
    			} else if sz < inlineBlock/8 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  5. internal/grid/types.go

    	val, bytes, err := msgp.ReadBytesZC(bytes)
    	if err != nil {
    		return bytes, err
    	}
    	if cap(*b) >= len(val) {
    		*b = (*b)[:len(val)]
    		copy(*b, val)
    	} else {
    		if cap(*b) == 0 && len(val) <= maxBufferSize {
    			*b = GetByteBufferCap(len(val))
    		} else {
    			PutByteBuffer(*b)
    			*b = make([]byte, 0, len(val))
    		}
    		in := *b
    		in = append(in[:0], val...)
    		*b = in
    	}
    	return bytes, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. cmd/xl-storage-meta-inline.go

    		}
    		plSize += len(found) + msgp.StringPrefixSize + msgp.ArrayHeaderSize
    		keys = append(keys, found)
    		if string(found) == key {
    			vals = append(vals, value)
    			plSize += len(value)
    			replaced = true
    		} else {
    			vals = append(vals, foundVal)
    			plSize += len(foundVal)
    		}
    	}
    
    	// Add one more.
    	if !replaced {
    		keys = append(keys, []byte(key))
    		vals = append(vals, value)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  7. cmd/mrf.go

    				scan = u.scanMode
    			}
    			if u.object == "" {
    				healBucket(u.bucket, scan)
    			} else {
    				if len(u.versions) > 0 {
    					vers := len(u.versions) / 16
    					if vers > 0 {
    						for i := 0; i < vers; i++ {
    							healObject(u.bucket, u.object, uuid.UUID(u.versions[16*i:]).String(), scan)
    						}
    					}
    				} else {
    					healObject(u.bucket, u.object, u.versionID, scan)
    				}
    			}
    
    			wait()
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. docs/debugging/xl-meta/main.go

    					copy(mapped[start:], data)
    				}
    				lastValid = size - 1
    				missing = 0
    			} else {
    				fmt.Println("Could NOT reconstruct:", err)
    			}
    		}
    	}
    	if lastValid == 0 {
    		return errors.New("no valid data found")
    	}
    	if missing > 0 {
    		out += ".truncated"
    	} else {
    		out += ".complete"
    	}
    	fmt.Println(missing, "bytes missing. Truncating", len(filled)-lastValid-1, "from end.")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  9. cmd/bootstrap-peer-server.go

    						incorrectConfigs = append(incorrectConfigs, fmt.Errorf("%s has incorrect configuration: %w", clnt, err))
    					} else {
    						offlineEndpoints = append(offlineEndpoints, fmt.Errorf("%s is unreachable: %w", clnt, err))
    					}
    				} else {
    					onlineServers++
    				}
    				mu.Unlock()
    			}(clnt)
    		}
    		wg.Wait()
    
    		select {
    		case <-ctx.Done():
    			return ctx.Err()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  10. cmd/kms-handlers.go

    		return
    	}
    	if res, err := json.Marshal(metrics); err != nil {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    	} else {
    		writeSuccessResponseJSON(w, res)
    	}
    }
    
    // KMSAPIsHandler - POST /minio/kms/v1/apis
    func (a kmsAPIHandlers) KMSAPIsHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "KMSAPIs")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top