Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for mustGetUUID (0.1 sec)

  1. cmd/format-erasure_test.go

    	m := &formatErasureV1{}
    	m.Format = formatBackendErasure
    	m.Version = formatMetaVersionV1
    	m.Erasure.Version = formatErasureVersionV1
    	m.Erasure.Disk = mustGetUUID()
    	m.Erasure.JBOD = []string{m.Erasure.Disk, mustGetUUID(), mustGetUUID(), mustGetUUID()}
    
    	b, err := json.Marshal(m)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-utils_test.go

    				xhttp.AmzRestore:                 "FAILED",
    				xhttp.ContentMD5:                 mustGetUUID(),
    				xhttp.AmzBucketReplicationStatus: "PENDING",
    				xhttp.ContentType:                "application/json",
    			},
    		},
    		{
    			name: "someempty",
    			arg: map[string]string{
    				xhttp.AmzRestore:                 "",
    				xhttp.ContentMD5:                 mustGetUUID(),
    				xhttp.AmzBucketReplicationStatus: "",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. cmd/local-locker_test.go

    		arg := dsync.LockArgs{
    			UID:       mustGetUUID(),
    			Resources: []string{mustGetUUID()},
    			Source:    t.Name(),
    			Owner:     "owner",
    			Quorum:    &quorum,
    		}
    		ok, err := l.Lock(ctx, arg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    		wResources[i] = arg.Resources[0]
    	}
    	for i := range rResources {
    		name := mustGetUUID()
    		arg := dsync.LockArgs{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. cmd/metacache-marker.go

    		case "id":
    			o.ID = kv[1]
    		case "return":
    			o.ID = mustGetUUID()
    			o.Create = true
    		case "p": // pool
    			v, err := strconv.ParseInt(kv[1], 10, 64)
    			if err != nil {
    				o.ID = mustGetUUID()
    				o.Create = true
    				continue
    			}
    			o.pool = int(v)
    		case "s": // set
    			v, err := strconv.ParseInt(kv[1], 10, 64)
    			if err != nil {
    				o.ID = mustGetUUID()
    				o.Create = true
    				continue
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. cmd/metacache-bucket_test.go

    	}
    	var pathNames [paths]string
    	for i := range pathNames[:] {
    		pathNames[i] = fmt.Sprintf("prefix/%d", i)
    	}
    	for i := 0; i < elements; i++ {
    		bm.findCache(listPathOptions{
    			ID:           mustGetUUID(),
    			Bucket:       "",
    			BaseDir:      pathNames[i%paths],
    			Prefix:       "",
    			FilterPrefix: "",
    			Marker:       "",
    			Limit:        0,
    			AskDisks:     "strict",
    			Recursive:    false,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 25 23:29:45 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. cmd/erasure-metadata_test.go

    		remoteVersionID string
    		status          string
    	}{
    		{
    			tier:            "S3TIER-1",
    			remoteObjName:   mustGetUUID(),
    			remoteVersionID: mustGetUUID(),
    			status:          "complete",
    		},
    		{
    			tier:            "S3TIER-2",
    			remoteObjName:   mustGetUUID(),
    			remoteVersionID: mustGetUUID(),
    			status:          "complete",
    		},
    	}
    
    	var i uint
    	for i = 0; i < 8; i++ {
    		fi := FileInfo{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. cmd/admin-handlers_test.go

    		lri := lockRequesterInfo{
    			Name:   resource,
    			UID:    mustGetUUID(),
    			Owner:  owners[i%len(owners)],
    			Quorum: 2,
    		}
    		lris = append(lris, lri)
    		locksHeld[resource] = append(locksHeld[resource], lri)
    		// concurrent read lock, same resource different uid
    		lri.UID = mustGetUUID()
    		lris = append(lris, lri)
    		locksHeld[resource] = append(locksHeld[resource], lri)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. cmd/xl-storage-format-v2_test.go

    				Hash:       nil,
    			}},
    		},
    		MarkDeleted:      false,
    		Data:             data,
    		NumVersions:      1,
    		SuccessorModTime: time.Time{},
    	}
    
    	d0, d1, d2 := mustGetUUID(), mustGetUUID(), mustGetUUID()
    	testCases := []struct {
    		versionID        string
    		dataDir          string
    		data             []byte
    		shares           int
    		transitionStatus string
    		restoreObjStatus string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  9. cmd/metacache-server-pool.go

    	return readDirFn(pathJoin(epPath, minioMetaBucket, bucketMetaPrefix), func(name string, typ os.FileMode) error {
    		if typ == os.ModeDir {
    			tmpMetacacheOld := pathutil.Join(epPath, minioMetaTmpDeletedBucket, mustGetUUID())
    			if err := renameAll(pathJoin(epPath, minioMetaBucket, metacachePrefixForID(name, slashSeparator)),
    				tmpMetacacheOld, epPath); err != nil && err != errFileNotFound {
    				return fmt.Errorf("unable to rename (%s -> %s) %w",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. cmd/xl-storage-format_test.go

    		b.Run(fmt.Sprint(size, "-versions"), func(b *testing.B) {
    			var xl xlMetaV2
    			ids := make([]string, size)
    			for i := 0; i < size; i++ {
    				fi.VersionID = mustGetUUID()
    				fi.DataDir = mustGetUUID()
    				ids[i] = fi.VersionID
    				fi.ModTime = fi.ModTime.Add(-time.Second)
    				xl.AddVersion(fi)
    			}
    			// Encode all. This is used for benchmarking.
    			enc, err := xl.AppendTo(nil)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top