Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Chen (0.13 sec)

  1. cmd/test-utils_test.go

    	globalObjectAPI = nil
    	globalObjLayerMutex.Unlock()
    
    	// call the HTTP handler.
    	apiRouter.ServeHTTP(rec, req)
    
    	// expected error response when the API handler is called before the object layer is initialized,
    	// or when objectLayer is `nil`.
    	serverNotInitializedErr := getAPIError(ErrServerNotInitialized).HTTPStatusCode
    	if rec.Code != serverNotInitializedErr {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    			b[i+j] = byte(100 + j)
    		}
    		for j := 0; j < 15; j++ {
    			p := IndexByte(b[i:i+15], byte(100+j))
    			if p != j {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    		return err
    	}
    
    	flags := os.O_CREATE | os.O_WRONLY | os.O_TRUNC
    
    	var w *os.File
    	if sync {
    		// Perform DirectIO along with fdatasync for larger xl.meta, mostly when
    		// xl.meta has "inlined data" we prefer writing O_DIRECT and then doing
    		// fdatasync() at the end instead of opening the file with O_DSYNC.
    		//
    		// This is an optimization mainly to ensure faster I/O.
    		if len(b) > xioutil.DirectioAlignSize {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    			return nil, time.Time{}, err
    		}
    		policy, _ = c.iamGroupPolicyMap.Load(name)
    		return policy.toSlice(), policy.UpdatedAt, nil
    	}
    
    	// When looking for a user's policies, we also check if the user
    	// and the groups they are member of are enabled.
    	u, ok := c.iamUsersMap[name]
    	if ok {
    		if !u.Credentials.IsValid() {
    			return nil, time.Time{}, nil
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  5. cmd/object-api-listobjects_test.go

    		// Marker being set to a value which is greater than and all object names when sorted (36).
    		// Expected to send an empty response in this case.
    		{"test-bucket-list-object", "", "zen", "", 10, ListObjectsInfo{}, nil, true},
    		// Marker being set to a value which is lesser than and all object names when sorted (37).
    		// Expected to send all the objects in the bucket in this case.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  6. cmd/object-api-multipart_test.go

    			expectedError: hash.BadDigest{ExpectedMD5: "d41d8cd98f00b204e9800998ecf8427f", CalculatedMD5: "d41d8cd98f00b204e9800998ecf8427e"},
    		},
    		// Test case - 13.
    		// When incorrect sha256 is provided.
    		{
    			bucketName: bucket, objName: object, uploadID: uploadID, PartID: 1, inputSHA256: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b854",
    			expectedError: hash.SHA256Mismatch{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  7. cmd/iam.go

    	// independently picks a (uniformly distributed) random time in an interval
    	// of size = baseInterval.
    	//
    	// For example:
    	//
    	//    - if baseInterval=10s, then 5s <= waitInterval() < 15s
    	//
    	//    - if baseInterval=10m, then 5m <= waitInterval() < 15m
    	waitInterval := func() time.Duration {
    		// Calculate a random value such that 0 <= value < baseInterval
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  8. cmd/erasure-server-pool.go

    		}
    		return loi, toObjectErr(err, bucket)
    	}
    
    	merged.forwardPast(opts.Marker)
    	defer merged.truncate(0) // Release when returning
    
    	if contextCanceled(ctx) {
    		return ListObjectsInfo{}, ctx.Err()
    	}
    
    	// Default is recursive, if delimiter is set then list non recursive.
    	objects := merged.fileInfos(bucket, prefix, delimiter)
    	loi.IsTruncated = err == nil && len(objects) > 0
    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)
  9. cmd/erasure-object.go

    	}
    
    	return fi.ToObjectInfo(srcBucket, srcObject, srcOpts.Versioned || srcOpts.VersionSuspended), nil
    }
    
    // GetObjectNInfo - returns object info and an object
    // Read(Closer). When err != nil, the returned reader is always nil.
    func (er erasureObjects) GetObjectNInfo(ctx context.Context, bucket, object string, rs *HTTPRangeSpec, h http.Header, opts ObjectOptions) (gr *GetObjectReader, err error) {
    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)
  10. tests/migrate_test.go

    	}
    
    	if err := DB.Migrator().CreateIndex(&IndexStruct{}, "Name"); err != nil {
    		t.Fatalf("Got error when tried to create index: %+v", err)
    	}
    
    	if err := DB.Migrator().RenameIndex(&IndexStruct{}, "idx_index_structs_name", "idx_users_name_1"); err != nil {
    		t.Fatalf("no error should happen when rename index, but got %v", err)
    	}
    
    	if !DB.Migrator().HasIndex(&IndexStruct{}, "idx_users_name_1") {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top