Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Stuart (0.16 sec)

  1. cmd/test-utils_test.go

    	rawDiskPaths []string
    }
    
    // UnstartedTestServer - Configures a temp FS/Erasure backend,
    // initializes the endpoints and configures the test server.
    // The server should be started using the Start() method.
    func UnstartedTestServer(t TestErrHandler, instanceType string) TestServer {
    	ctx, cancel := context.WithCancel(context.Background())
    	// create an instance of TestServer.
    	testServer := TestServer{cancel: cancel}
    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

    func TestIndexByteBig(t *testing.T) {
    	var n = 1024
    	if testing.Short() {
    		n = 128
    	}
    	b := make([]byte, n)
    	for i := 0; i < n; i++ {
    		// different start alignments
    		b1 := b[i:]
    		for j := 0; j < len(b1); j++ {
    			b1[j] = 'x'
    			pos := IndexByte(b1, 'x')
    			if pos != j {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    			b1[j] = 0
    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/peer-rest-server.go

    	}
    
    	err := globalIAMSys.LoadGroup(context.Background(), objAPI, group)
    	if err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	return
    }
    
    // StartProfilingHandler - Issues the start profiling command.
    func (s *peerRESTServer) StartProfilingHandler(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		s.writeErrorResponse(w, errors.New("Invalid request"))
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  4. internal/s3select/select_test.go

            </JSON>
        </OutputSerialization>
        <RequestProgress>
            <Enabled>FALSE</Enabled>
        </RequestProgress>
    	<ScanRange><Start>56</Start><End>76</End></ScanRange>
    </SelectObjectContentRequest>`),
    		},
    		{
    			name:  "error-end-before-start",
    			input: testInput,
    			// Since we are doing offset, no headers are used.
    			wantResult: ``,
    			wantErr:    true,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    	buf, err := xattr.LGet(s.formatFile, attr)
    	if err != nil {
    		// We start off with '0' if we can read the attributes
    		return 0
    	}
    	return binary.LittleEndian.Uint64(buf[:8])
    }
    
    func (s *xlStorage) getWriteAttribute() uint64 {
    	attr := "user.total_writes"
    	buf, err := xattr.LGet(s.formatFile, attr)
    	if err != nil {
    		// We start off with '0' if we can read the attributes
    		return 0
    	}
    
    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)
  6. cmd/iam-store.go

    		// User was deleted - we update the cache.
    		delete(m, accessKey)
    
    		// Since cache was updated, we update the timestamp.
    		defer func() {
    			cache.updatedAt = time.Now()
    		}()
    
    		// 1. Start with updating user-group memberships
    		if store.getUsersSysType() == MinIOUsersSysType {
    			memberOf := cache.iamUserGroupMemberships[accessKey].ToSlice()
    			for _, group := range memberOf {
    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)
  7. cmd/erasure-server-pool.go

    				updates := make(chan dataUsageCache, 1)
    				defer xioutil.SafeClose(updates)
    				// Start update collector.
    				go func() {
    					defer wg.Done()
    					for info := range updates {
    						mu.Lock()
    						results[i] = info
    						mu.Unlock()
    					}
    				}()
    				// Start scanner. Blocks until done.
    				err := erObj.nsScanner(ctx, allBuckets, wantCycle, updates, healScanMode)
    				if err != nil {
    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)
  8. cmd/erasure-object.go

    	}
    
    	// Reply back invalid range if the input offset and length fall out of range.
    	if startOffset > fi.Size || startOffset+length > fi.Size {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Get start part index and offset.
    	partIndex, partOffset, err := fi.ObjectToPartOffset(ctx, startOffset)
    	if err != nil {
    		return InvalidRange{startOffset, length, fi.Size}
    	}
    
    	// Calculate endOffset according to length
    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)
  9. cmd/api-errors.go

    		Description:    "Client token mismatch",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrHealMissingBucket: {
    		Code:           "XMinioHealMissingBucket",
    		Description:    "A heal start request with a non-empty object-prefix parameter requires a bucket to be specified.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrHealAlreadyRunning: {
    		Code:           "XMinioHealAlreadyRunning",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  10. cmd/iam.go

    	// the plugin and they need not exist.
    	//
    	// If some mapped policies do not exist, we print some error
    	// messages but continue any way - they can be fixed in the
    	// running server by creating the policies after start up.
    	for arn, rolePolicies := range m {
    		specifiedPoliciesSet := newMappedPolicy(rolePolicies).policySet()
    		validPolicies, _ := sys.store.FilterPolicies(rolePolicies, "")
    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)
Back to top