Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for whale (0.14 sec)

  1. internal/s3select/message.go

    	}
    
    	// Whatever drain the payloadCh to prevent from memory leaking.
    	for len(writer.payloadCh) > 0 {
    		payload := <-writer.payloadCh
    		bufPool.Put(payload)
    	}
    }
    
    // Sends a single whole record.
    func (writer *messageWriter) SendRecord(payload *bytes.Buffer) error {
    	select {
    	case writer.payloadCh <- payload:
    		return nil
    	case <-writer.doneCh:
    		return fmt.Errorf("messageWriter is done")
    	}
    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)
  2. cmd/xl-storage-disk-id-check.go

    		// coming up and trying to read format.json or create format.json
    		return nil
    	}
    	storedDiskID, err := p.storage.GetDiskID()
    	if err != nil {
    		// return any error generated while reading `format.json`
    		return err
    	}
    	if err == nil && *p.diskID.Load() == storedDiskID {
    		return nil
    	}
    	// not the same disk we remember, take it offline.
    	return errDiskNotFound
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. cmd/sftp-server.go

    	})
    	if err != nil {
    		logger.Fatal(err, "Unable to start SFTP Server")
    	}
    
    	err = sftpServer.Listen()
    	if err != nil {
    		logger.Fatal(err, "SFTP Server had an unrecoverable error while accepting connections")
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. internal/dsync/dsync_test.go

    	case <-ctx.Done():
    		t.Fatal("Lock context canceled which is not expected")
    	case <-timer.C:
    	}
    
    	// Should be safe operation in all cases
    	dm.Unlock(context.Background())
    }
    
    // Test canceling context while quorum servers report lock not found
    func TestFailedRefreshLock(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    
    	// Simulate Refresh response to return no locking found
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  5. internal/grid/connection.go

    const (
    	// StateUnconnected is the initial state of a connection.
    	// When the first message is sent it will attempt to connect.
    	StateUnconnected = iota
    
    	// StateConnecting is the state from StateUnconnected while the connection is attempted to be established.
    	// After this connection will be StateConnected or StateConnectionError.
    	StateConnecting
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  6. cmd/admin-router.go

    //
    // - updates request context with `logger.ReqInfo` and api name based on the
    // name of the function handler passed (this handler must be a method of
    // `adminAPIHandlers`).
    //
    // - sets up call to send AuditLog
    //
    // While this is a middleware function (i.e. it takes a handler function and
    // returns one), due to flags being passed based on required conditions, it is
    // done per-"handler function registration" in the router.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  7. cmd/streaming-signature-v4.go

    //   - http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
    //
    // returns signature, error otherwise if the signature mismatches or any other
    // error while parsing and validating.
    func calculateSeedSignature(r *http.Request, trailers bool) (cred auth.Credentials, signature string, region string, date time.Time, errCode APIErrorCode) {
    	// Copy request.
    	req := *r
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  8. cmd/encryption-v1.go

    	}
    
    	if err := w.buildDecrypter(w.parts[w.partIndex].Number); err != nil {
    		return nil, err
    	}
    
    	return w, nil
    }
    
    // DecryptBlocksReader - decrypts multipart parts, while implementing
    // a io.Reader compatible interface.
    type DecryptBlocksReader struct {
    	// Source of the encrypted content that will be decrypted
    	reader io.Reader
    	// Current decrypter for the current encrypted data block
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  9. cmd/signature-v2.go

    		return cred, ErrSignatureDoesNotMatch
    	}
    	return cred, ErrNone
    }
    
    // Escape encodedQuery string into unescaped list of query params, returns error
    // if any while unescaping the values.
    func unescapeQueries(encodedQuery string) (unescapedQueries []string, err error) {
    	for _, query := range strings.Split(encodedQuery, "&") {
    		var unescapedQuery string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  10. cmd/peer-s3-client.go

    				}
    			}
    		}
    		// loop through buckets and see if some with lost quorum
    		// these could be stale buckets lying around, queue a heal
    		// of such a bucket. This is needed here as we identify such
    		// buckets here while listing buckets. As part of regular
    		// globalBucketMetadataSys.Init() call would get a valid
    		// buckets only and not the quourum lost ones like this, so
    		// explicit call
    		for bktName, count := range bucketsMap {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
Back to top