Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 142 for pcall (0.14 sec)

  1. cmd/erasure-object.go

    	if !dstOpts.NoAuditLog {
    		auditObjectErasureSet(ctx, dstObject, &er)
    	}
    
    	// This call shouldn't be used for anything other than metadata updates or adding self referential versions.
    	if !srcInfo.metadataOnly {
    		return oi, NotImplemented{}
    	}
    
    	if !dstOpts.NoLock {
    		lk := er.NewNSLock(dstBucket, dstObject)
    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)
  2. internal/grid/types.go

    	"sort"
    	"strings"
    	"sync"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    // Recycler will override the internal reuse in typed handlers.
    // When this is supported, the handler will not do internal pooling of objects,
    // call Recycle() when the object is no longer needed.
    // The recycler should handle nil pointers.
    type Recycler interface {
    	Recycle()
    }
    
    // MSS is a map[string]string that can be serialized.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. internal/s3select/message.go

    	if result {
    		atomic.AddInt64(&writer.bytesReturned, int64(writer.payloadBufferIndex))
    		writer.payloadBufferIndex = 0
    	}
    	return result
    }
    
    // Finish is the last call to the message writer - it sends any
    // remaining record payload, then sends statistics and finally the end
    // message.
    func (writer *messageWriter) Finish(bytesScanned, bytesProcessed int64) error {
    	select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  4. cmd/auth-handler.go

    	}) {
    		retSet = true
    	}
    	if byPassSet || retSet {
    		return ErrNone
    	}
    	return ErrAccessDenied
    }
    
    // isPutActionAllowed - check if PUT operation is allowed on the resource, this
    // call verifies bucket policies and IAM policies, supports multi user
    // checks etc.
    func isPutActionAllowed(ctx context.Context, atype authType, bucketName, objectName string, r *http.Request, action policy.Action) (s3Err APIErrorCode) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  5. docs/debugging/xl-meta/main.go

    		}
    		if len(key) == 0 {
    			return fmt.Errorf("xlMetaInlineData: key %d is length 0", i)
    		}
    		// Read data...
    		val, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return err
    		}
    		// Call back.
    		fn(string(key), val)
    	}
    	return nil
    }
    
    const (
    	xlHeaderVersion = 3
    	xlMetaVersion   = 2
    )
    
    type xlHeaders struct {
    	versions           int
    	headerVer, metaVer uint
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  6. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrIncorrectSQLFunctionArgumentType: {
    		Code:           "IncorrectSqlFunctionArgumentType",
    		Description:    "Incorrect type of arguments in function call in the SQL expression.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrValueParseFailure: {
    		Code:           "ValueParseFailure",
    		Description:    "Time stamp parse failure in the SQL expression.",
    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)
  7. cmd/object-handlers.go

    	w.Header().Del(xhttp.ContentType)
    
    	if _, ok := opts.ObjectAttributes[xhttp.Checksum]; ok {
    		chkSums := objInfo.decryptChecksums(0)
    		// AWS does not appear to append part number on this API call.
    		switch {
    		case chkSums["CRC32"] != "":
    			OA.Checksum = new(objectAttributesChecksum)
    			OA.Checksum.ChecksumCRC32 = strings.Split(chkSums["CRC32"], "-")[0]
    		case chkSums["CRC32C"] != "":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  8. cmd/object-multipart-handlers.go

    	bucket := vars["bucket"]
    	object, err := unescapePath(vars["object"])
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// X-Amz-Copy-Source shouldn't be set for this call.
    	if _, ok := r.Header[xhttp.AmzCopySource]; ok {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidCopySource), r.URL)
    		return
    	}
    
    	clientETag, err := etag.FromContentMD5(r.Header)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    		defer wg.Done()
    		for metric := range in {
    			labels, values := getOrderedLabelValueArrays(metric.VariableLabels)
    			collectMetric(metric, labels, values, "bucket", out)
    		}
    	}
    
    	// Call peer api to fetch metrics
    	wg.Add(2)
    	go publish(ReportMetrics(GlobalContext, c.metricsGroups))
    	go publish(globalNotificationSys.GetBucketMetrics(GlobalContext))
    	wg.Wait()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  10. cmd/storage-rest-client.go

    	return client.endpoint.PoolIdx, client.endpoint.SetIdx, client.endpoint.DiskIdx
    }
    
    // Wrapper to restClient.Call to handle network errors, in case of network error the connection is disconnected
    // and a healthcheck routine gets invoked that would reconnect.
    func (client *storageRESTClient) call(ctx context.Context, method string, values url.Values, body io.Reader, length int64) (io.ReadCloser, error) {
    	if values == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
Back to top