Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for successor (0.17 sec)

  1. cmd/erasure-metadata.go

    			maxHash = hash
    		}
    	}
    
    	if maxCount < quorum {
    		return FileInfo{}, InsufficientReadQuorum{Err: errErasureReadQuorum, Type: RQInconsistentMeta}
    	}
    
    	// Find the successor mod time in quorum, otherwise leave the
    	// candidate's successor modTime as found
    	succModTimeMap := make(map[time.Time]int)
    	var candidate FileInfo
    	var found bool
    	for i, hash := range metaHashes {
    		if hash == maxHash {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  2. cmd/object-api-datatypes.go

    	replicationDecision string // internal representation of replication decision for use by DeleteObject handler
    	// The total count of all versions of this object
    	NumVersions int
    	//  The modtime of the successor object version if any
    	SuccessorModTime time.Time
    
    	// Checksums added on upload.
    	// Encoded, maybe encrypted.
    	Checksum []byte
    
    	// Inlined
    	Inlined bool
    
    	DataBlocks   int
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  3. cmd/postpolicyform_test.go

    			success: true,
    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			_, err := parsePostPolicyForm(strings.NewReader(testCase.policy))
    			if testCase.success && err != nil {
    				t.Errorf("Expected success but failed with %s", err)
    			}
    			if !testCase.success && err == nil {
    				t.Errorf("Expected failed but succeeded")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  4. internal/hash/reader_test.go

    			if err != nil && testCase.success {
    				t.Errorf("Test %q: Expected success, but got error %s instead", testCase.desc, err)
    			}
    			if err == nil && !testCase.success {
    				t.Errorf("Test %q: Expected error, but got success", testCase.desc)
    			}
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  5. cmd/signals.go

    )
    
    func handleSignals() {
    	// Custom exit function
    	exit := func(success bool) {
    		if globalLoggerOutput != nil {
    			globalLoggerOutput.Close()
    		}
    
    		// If global profiler is set stop before we exit.
    		globalProfilerMu.Lock()
    		defer globalProfilerMu.Unlock()
    		for _, p := range globalProfiler {
    			p.Stop()
    		}
    
    		if success {
    			os.Exit(0)
    		}
    
    		os.Exit(1)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. cmd/common-main_test.go

    			value, err := readFromSecret(tmpfile.Name())
    			if err != nil && !testCase.expectedErr {
    				t.Error(err)
    			}
    			if err == nil && testCase.expectedErr {
    				t.Error(errors.New("expected error, found success"))
    			}
    			if value != testCase.expectedValue {
    				t.Errorf("Expected %s, got %s", testCase.expectedValue, value)
    			}
    		})
    	}
    }
    
    func Test_minioEnvironFromFile(t *testing.T) {
    	testCases := []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  7. cmd/bucket-policy-handlers.go

    		Type:      madmin.SRBucketMetaTypePolicy,
    		Bucket:    bucket,
    		Policy:    bucketPolicyBytes,
    		UpdatedAt: updatedAt,
    	}))
    
    	// Success.
    	writeSuccessNoContent(w)
    }
    
    // DeleteBucketPolicyHandler - This HTTP handler removes bucket policy configuration.
    func (api objectAPIHandlers) DeleteBucketPolicyHandler(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  8. docs/extensions/s3zip/examples/aws-js/main.js

        on('build', function(req) { req.httpRequest.headers['X-Minio-Extract'] = 'true'; }).
        send(function(err, data) {
            if (err) {
                console.log("Error", err);
            } else {
                console.log("Success", data);
            }
        });
    
    
    // Download a file in the archive and store it in /tmp/data.csv
    var file = require('fs').createWriteStream('/tmp/data.csv');
    JavaScript
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jun 10 15:17:03 GMT 2021
    - 1K bytes
    - Viewed (0)
  9. cmd/acl-handlers.go

    	} `xml:"AccessControlList"`
    }
    
    // PutBucketACLHandler - PUT Bucket ACL
    // -----------------
    // This operation uses the ACL subresource
    // to set ACL for a bucket, this is a dummy call
    // only responds success if the ACL is private.
    func (api objectAPIHandlers) PutBucketACLHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "PutBucketACL")
    
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 8.4K bytes
    - Viewed (0)
  10. cmd/object-multipart-handlers.go

    	if res.ChecksumAlgo != "" {
    		w.Header().Set(xhttp.AmzChecksumAlgo, res.ChecksumAlgo)
    	}
    	encodedSuccessResponse := encodeResponse(response)
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodedSuccessResponse)
    }
    
    // CopyObjectPartHandler - uploads a part by copying data from an existing object as data source.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
Back to top