Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for truncate (0.18 sec)

  1. cmd/metacache-server-pool.go

    		return entries, listErr
    	}
    	entries.reuse = true
    	truncated := entries.len() > o.Limit || err == nil
    	entries.truncate(o.Limit)
    	if !o.Transient && truncated {
    		if o.ID == "" {
    			entries.listID = mustGetUUID()
    		} else {
    			entries.listID = o.ID
    		}
    	}
    	if !truncated {
    		return entries, io.EOF
    	}
    	return entries, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  2. cmd/admin-server-info.go

    		// For example, if len(stats.PauseQuantiles) is 5, it will be
    		// filled with the minimum, 25%, 50%, 75%, and maximum pause times.
    		PauseQuantiles: make([]time.Duration, 5),
    	}
    	debug.ReadGCStats(&gcStats)
    	// Truncate GC stats to max 5 entries.
    	if len(gcStats.PauseEnd) > 5 {
    		gcStats.PauseEnd = gcStats.PauseEnd[len(gcStats.PauseEnd)-5:]
    	}
    	if len(gcStats.Pause) > 5 {
    		gcStats.Pause = gcStats.Pause[len(gcStats.Pause)-5:]
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  3. cmd/metacache-entries.go

    		// No prefix, simpler
    		for _, o := range m.o {
    			if !strings.Contains(o.name, separator) {
    				dst = append(dst, o)
    			}
    		}
    	}
    	m.o = dst
    }
    
    // truncate the number of entries to maximum n.
    func (m *metaCacheEntriesSorted) truncate(n int) {
    	if m == nil {
    		return
    	}
    	if len(m.o) > n {
    		if m.reuse {
    			for i, entry := range m.o[n:] {
    				metaDataPoolPut(entry.metadata)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  4. docs/distributed/distributed-from-config-file.sh

    export MC_HOST_minio3=http://minr0otUS2r:pBU94AGAY85e@localhost:9003
    
    ./mc ready minio1
    ./mc ready minio3
    
    ./mc mb minio1/testbucket
    # copy large upload to newbucket on minio1
    truncate -s 17M lrgfile
    expected_checksum=$(cat ./lrgfile | md5sum)
    
    ./mc cp ./lrgfile minio1/testbucket
    
    actual_checksum=$(./mc cat minio3/testbucket/lrgfile | md5sum)
    
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool.go

    	if err != nil && err != io.EOF {
    		if !isErrBucketNotFound(err) {
    			storageLogOnceIf(ctx, err, "erasure-list-objects-path-"+bucket)
    		}
    		return loi, toObjectErr(err, bucket)
    	}
    	defer merged.truncate(0) // Release when returning
    
    	if contextCanceled(ctx) {
    		return ListObjectVersionsInfo{}, ctx.Err()
    	}
    
    	if versionMarker == "" {
    		o := listPathOptions{Marker: marker}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  6. cmd/storage-datatypes.go

    	Files        []string // Individual files to read.
    	MaxSize      int64    // Return error if size is exceed.
    	MetadataOnly bool     // Read as XL meta and truncate data.
    	AbortOn404   bool     // Stop reading after first file not found.
    	MaxResults   int      // Stop after this many successful results. <= 0 means all.
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. cmd/object-api-datatypes.go

    type ListObjectVersionsInfo struct {
    	// Indicates whether the returned list objects response is truncated. A
    	// value of true indicates that the list was truncated. The list can be truncated
    	// if the number of objects exceeds the limit allowed or specified
    	// by max keys.
    	IsTruncated bool
    
    	// When response is truncated (the IsTruncated element value in the response is true),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  8. docs/site-replication/run-multi-site-ldap.sh

    ./mc admin user svcacct info minio3 testsvc
    if [ $? -eq 0 ]; then
    	echo "svc account found after delete, exiting.."
    	exit_1
    fi
    
    ./mc mb minio1/newbucket
    # copy large upload to newbucket on minio1
    truncate -s 17M lrgfile
    expected_checksum=$(cat ./lrgfile | md5sum)
    
    ./mc cp ./lrgfile minio1/newbucket
    
    # create a bucket bucket2 on minio1.
    ./mc mb minio1/bucket2
    
    sleep 5
    ./mc stat minio2/newbucket
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 14 04:51:23 GMT 2024
    - 10K bytes
    - Viewed (1)
  9. docs/site-replication/run-multi-site-minio-idp.sh

    ./mc admin user svcacct info minio3 testsvc
    if [ $? -eq 0 ]; then
    	echo "svc account found after delete, exiting.."
    	exit_1
    fi
    
    ./mc mb minio1/newbucket
    # copy large upload to newbucket on minio1
    truncate -s 17M lrgfile
    expected_checksum=$(cat ./lrgfile | md5sum)
    
    ./mc cp ./lrgfile minio1/newbucket
    
    sleep 5
    ./mc stat minio2/newbucket
    if [ $? -ne 0 ]; then
    	echo "expecting bucket to be present. exiting.."
    Shell Script
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 07 00:19:24 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  10. cmd/erasure-common.go

    					continue
    				}
    				quorum++
    				if toAdd.Modtime.After(gotFile.Modtime) || len(gotFile.Data) < len(toAdd.Data) {
    					// Pick latest, or largest to avoid possible truncated entries.
    					continue
    				}
    				toAdd = gotFile
    			}
    		}
    		if quorum < readQuorum {
    			toAdd.Exists = false
    			toAdd.Error = errErasureReadQuorum.Error()
    			toAdd.Data = nil
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top