Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for ends (0.13 sec)

  1. cmd/xl-storage-meta-inline.go

    	// Skip CRC
    	if maj > 1 || min >= 2 {
    		_, metaBuf, err = msgp.ReadUint32Bytes(metaBuf)
    		storageLogIf(GlobalContext, err)
    	}
    	//   =  input - current pos
    	ends := len(buf) - len(metaBuf)
    	if ends > len(buf) {
    		return buf
    	}
    
    	return buf[:ends]
    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)
  2. cmd/admin-heal-ops.go

    		ahs.healLocalDisks[ep] = false
    	}
    }
    
    func (ahs *allHealState) periodicHealSeqsClean(ctx context.Context) {
    	// Launch clean-up routine to remove this heal sequence (after
    	// it ends) from the global state after timeout has elapsed.
    	periodicTimer := time.NewTimer(time.Minute * 5)
    	defer periodicTimer.Stop()
    
    	for {
    		select {
    		case <-periodicTimer.C:
    			now := UTCNow()
    			ahs.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  3. internal/rest/client.go

    		}
    	}
    
    	// Write response to trace output.
    	_, err = fmt.Fprint(c.TraceOutput, strings.TrimSuffix(string(respTrace), "\r\n"))
    	if err != nil {
    		return
    	}
    
    	// Ends the http dump.
    	_, err = fmt.Fprintln(c.TraceOutput, "---------END-HTTP---------")
    	if err != nil {
    		return
    	}
    
    	// Returns success.
    	return
    }
    
    // ErrClientClosed returned when *Client is closed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    	if oi.Size == 0 || len(oi.Parts) == 0 {
    		return nil
    	}
    
    	var start int64
    	end := int64(-1)
    	for i := 0; i < len(oi.Parts) && i < partNumber; i++ {
    		start = end + 1
    		end = start + oi.Parts[i].ActualSize - 1
    	}
    
    	return &HTTPRangeSpec{Start: start, End: end}
    }
    
    // Returns the compressed offset which should be skipped.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  5. cmd/metacache-stream.go

    		}
    	}
    }
    
    // readN will return all the requested number of entries in order
    // or all if n < 0.
    // Will return io.EOF if end of stream is reached.
    // If requesting 0 objects nil error will always be returned regardless of at end of stream.
    // Use peek to determine if at end of stream.
    func (r *metacacheReader) readN(n int, inclDeleted, inclDirs, inclVersions bool, prefix string) (metaCacheEntriesSorted, error) {
    	r.checkInit()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    		// considered as Delete marker true to avoid listing such objects by
    		// regular ListObjects() calls. However for delete replication this
    		// ends up being a problem because "upon" a successful delete this
    		// ends up creating a new delete marker that is spurious and unnecessary.
    		//
    		// Regression introduced by #14555 was reintroduced in #15564
    		if versionFound {
    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)
  7. cmd/server_test.go

    	// asserted the contents of the fetched object with the expected result.
    	c.Assert(true, bytes.Equal(buffer2.Bytes(), []byte("hello world")))
    
    	// Test the response when object name ends with a slash.
    	// This is a special case with size as '0' and object ends with
    	// a slash separator, we treat it like a valid operation and
    	// return success.
    	// The response Etag headers should contain Md5Sum of empty string.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  8. cmd/object-api-utils_test.go

    		{"......", false},
    		{"", false},
    		{"a", false},
    		{"ab", false},
    		{".starts-with-a-dot", false},
    		{"ends-with-a-dot.", false},
    		{"ends-with-a-dash-", false},
    		{"-starts-with-a-dash", false},
    		{"THIS-BEGINS-WITH-UPPERCASe", false},
    		{"tHIS-ENDS-WITH-UPPERCASE", false},
    		{"ThisBeginsAndEndsWithUpperCasE", false},
    		{"una ñina", false},
    		{"dash-.may-not-appear-next-to-dot", false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    	registerBucketLevelFunc(bucketRouter, api, apiFunctions...)
    }
    
    // Takes in Erasure object layer, and the list of API end points to be tested/required, registers the API end points and returns the HTTP handler.
    // Need isolated registration of API end points while writing unit tests for end points.
    // All the API end points are registered only for the default case.
    func initTestAPIEndPoints(objLayer ObjectLayer, apiFunctions []string) http.Handler {
    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)
  10. cmd/peer-rest-client.go

    	return nil
    }
    
    // CommitBinary - sends commit binary message to remote peers.
    func (client *peerRESTClient) CommitBinary(ctx context.Context) error {
    	respBody, err := client.callWithContext(ctx, peerRESTMethodCommitBinary, nil, nil, -1)
    	if err != nil {
    		return err
    	}
    	defer xhttp.DrainBody(respBody)
    	return nil
    }
    
    // SignalService - sends signal to peer nodes.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
Back to top