Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for s2 (0.21 sec)

  1. cmd/object-api-utils.go

    		// but we choose pseudo-random numbers instead of just zeros.
    		rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    		opts = append([]s2.WriterOption{s2.WriterPadding(compPadEncrypted), s2.WriterPaddingSrc(rng)}, compressOpts...)
    	}
    	comp := s2.NewWriter(pw, opts...)
    	indexCh := make(chan []byte, 1)
    	go func() {
    		defer xioutil.SafeClose(indexCh)
    		cn, err := io.Copy(comp, r)
    		if err != nil {
    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)
  2. cmd/bootstrap-peer-server.go

    func (s1 *ServerSystemConfig) Diff(s2 *ServerSystemConfig) error {
    	ns1 := s1.NEndpoints
    	ns2 := s2.NEndpoints
    	if ns1 != ns2 {
    		return fmt.Errorf("Expected number of endpoints %d, seen %d", ns1, ns2)
    	}
    
    	for i, cmdLine := range s1.CmdLines {
    		if cmdLine != s2.CmdLines[i] {
    			return fmt.Errorf("Expected command line argument %s, seen %s", cmdLine,
    				s2.CmdLines[i])
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  3. cmd/untar.go

    	"archive/tar"
    	"bufio"
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"io"
    	"io/fs"
    	"os"
    	"path"
    	"runtime"
    	"sync"
    	"time"
    
    	"github.com/cosnicolaou/pbzip2"
    	"github.com/klauspost/compress/s2"
    	"github.com/klauspost/compress/zstd"
    	gzip "github.com/klauspost/pgzip"
    	"github.com/pierrec/lz4"
    )
    
    // Max bzip2 concurrency across calls. 50% of GOMAXPROCS.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. cmd/metacache-stream.go

    	"strings"
    	"sync"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/klauspost/compress/s2"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/tinylib/msgp/msgp"
    	"github.com/valyala/bytebufferpool"
    )
    
    // metadata stream format:
    //
    // The stream is s2 compressed.
    // https://github.com/klauspost/compress/tree/master/s2#s2-compression
    // This ensures integrity and reduces the size typically by at least 50%.
    //
    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)
  5. statement_test.go

    				})
    			}
    
    			s1 := s.clone()
    			s1.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL1"),
    			})
    			s2 := s.clone()
    			s2.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL2"),
    			})
    
    			if reflect.DeepEqual(s1.Clauses["WHERE"], s2.Clauses["WHERE"]) {
    				t.Errorf("Where conditions should be different")
    			}
    		})
    	}
    }
    
    func TestNilCondition(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Dec 23 13:19:41 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  6. cmd/object-api-utils_test.go

    			if !tt.wantIdx && len(idx) > 0 {
    				t.Errorf("index returned above threshold")
    			}
    			if tt.wantIdx {
    				if idx == nil {
    					t.Errorf("no index returned")
    				}
    				var index s2.Index
    				_, err = index.Load(s2.RestoreIndexHeaders(idx))
    				if err != nil {
    					t.Errorf("error loading index: %v", err)
    				}
    				t.Log("size:", len(idx))
    				t.Log(string(index.JSON()))
    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)
  7. cmd/site-replication.go

    	return SRError{
    		Cause: err,
    		Code:  ErrSiteReplicationConfigMissing,
    	}
    }
    
    func errSRIAMConfigMismatch(peer1, peer2 string, s1, s2 madmin.IDPSettings) SRError {
    	return SRError{
    		Cause: fmt.Errorf("IAM/IDP settings mismatch between %s and %s: %#v vs %#v", peer1, peer2, s1, s2),
    		Code:  ErrSiteReplicationIAMConfigMismatch,
    	}
    }
    
    var errSRObjectLayerNotReady = SRError{
    	Cause: fmt.Errorf("object layer not ready"),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  8. cmd/batch-job-common-types.go

    //     disable: false # optionally turn-off snowball archive transfer
    //     batch: 100 # upto this many objects per archive
    //     inmemory: true # indicates if the archive must be staged locally or in-memory
    //     compress: true # S2/Snappy compressed archive
    //     smallerThan: 5MiB # create archive for all objects smaller than 5MiB
    //     skipErrs: false # skips any source side read() errors
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 01 21:53:26 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  9. cmd/object-handlers.go

    	"response-content-language":    xhttp.ContentLanguage,
    	"response-content-disposition": xhttp.ContentDisposition,
    }
    
    const (
    	compressionAlgorithmV1 = "golang/snappy/LZ77"
    	compressionAlgorithmV2 = "klauspost/compress/s2"
    
    	// When an upload exceeds encryptBufferThreshold ...
    	encryptBufferThreshold = 1 << 20
    	// add an input buffer of this size.
    	encryptBufferSize = 1 << 20
    
    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)
  10. cmd/metacache-set.go

    }
    
    // objectPath returns the object path of the cache.
    func (o *listPathOptions) objectPath(block int) string {
    	return pathJoin(metacachePrefixForID(o.Bucket, o.ID), "block-"+strconv.Itoa(block)+".s2")
    }
    
    func (o *listPathOptions) SetFilter() {
    	switch {
    	case metacacheSharePrefix:
    		return
    	case o.Prefix == o.BaseDir:
    		// No additional prefix
    		return
    	}
    	// Remove basedir.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top