Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 391 for ctx_ (0.04 sec)

  1. cmd/lock-rest-server-common_test.go

    	"reflect"
    	"sync"
    	"testing"
    
    	"github.com/minio/minio/internal/dsync"
    )
    
    // Helper function to create a lock server for testing
    func createLockTestServer(ctx context.Context, t *testing.T) (string, *lockRESTServer, string) {
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatalf("unable initialize config file, %s", err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. prepare_stmt.go

    		if errors.Is(err, driver.ErrBadConn) {
    			db.Mux.Lock()
    			defer db.Mux.Unlock()
    
    			go stmt.Close()
    			delete(db.Stmts, query)
    		}
    	}
    	return rows, err
    }
    
    func (db *PreparedStmtDB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row {
    	stmt, err := db.prepare(ctx, db.ConnPool, false, query)
    	if err == nil {
    		return stmt.QueryRowContext(ctx, args...)
    	}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. cmd/erasure-metadata.go

    // pickValidFileInfo - picks one valid FileInfo content and returns from a
    // slice of FileInfo.
    func pickValidFileInfo(ctx context.Context, metaArr []FileInfo, modTime time.Time, etag string, quorum int) (FileInfo, error) {
    	return findFileInfoInQuorum(ctx, metaArr, modTime, etag, quorum)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. cmd/erasure-metadata-utils.go

    func reduceReadQuorumErrs(ctx context.Context, errs []error, ignoredErrs []error, readQuorum int) (maxErr error) {
    	return reduceQuorumErrs(ctx, errs, ignoredErrs, readQuorum, errErasureReadQuorum)
    }
    
    // reduceWriteQuorumErrs behaves like reduceErrs but only for returning
    // values of maximally occurring errors validated against writeQuorum.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. internal/http/dial_others.go

    }
    
    // DialContext is a function to make custom Dial for internode communications
    type DialContext func(ctx context.Context, network, address string) (net.Conn, error)
    
    // NewInternodeDialContext configures a custom dialer for internode communications
    func NewInternodeDialContext(dialTimeout time.Duration, _ TCPOptions) DialContext {
    	return func(ctx context.Context, network, addr string) (net.Conn, error) {
    		dialer := &net.Dialer{
    			Timeout: dialTimeout,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Apr 24 04:08:47 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. cmd/metacache-bucket.go

    		// Recursively delete all caches.
    		objAPI := newObjectLayerFn()
    		if objAPI != nil {
    			ez, ok := objAPI.(deleteAllStorager)
    			if ok {
    				ctx := context.Background()
    				ez.deleteAll(ctx, minioMetaBucket, metacachePrefixForID(bucket, slashSeparator))
    			}
    		}
    	}
    	return &bucketMetacache{
    		bucket:     bucket,
    		caches:     make(map[string]metacache, 10),
    		cachesRoot: make(map[string][]string, 10),
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. internal/rest/client.go

    	u := *c.url
    	u.Path = path.Join(u.Path, rpcMethod)
    	u.RawQuery = values.Encode()
    
    	req, err := c.newRequest(ctx, httpMethod, u, body)
    	if err != nil {
    		return nil, &NetworkError{Err: err}
    	}
    	if length > 0 {
    		req.ContentLength = length
    	}
    
    	_, expectTimeouts := ctx.Deadline()
    
    	req, update := setupReqStatsUpdate(req)
    	defer update()
    
    	resp, err := c.httpClient.Do(req)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TF_ExecutionContext* ctx = TF_NewEagerExecutionContext(opts, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TFE_DeleteContextOptions(opts);
    
      TF_AbstractFunction* f = TF_FinalizeFunction(ctx, nullptr, status.get());
      ASSERT_EQ(nullptr, f);
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      TF_DeleteExecutionContext(ctx);
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  9. cmd/tier-sweeper.go

    }
    
    type jentry struct {
    	ObjName   string
    	VersionID string
    	TierName  string
    }
    
    func deleteObjectFromRemoteTier(ctx context.Context, objName, rvID, tierName string) error {
    	w, err := globalTierConfigMgr.getDriver(ctx, tierName)
    	if err != nil {
    		return err
    	}
    	return w.Remove(ctx, objName, remoteVersionID(rvID))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Apr 17 05:09:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. internal/config/lambda/target/webhook.go

    		return errNotConnected
    	}
    
    	return nil
    }
    
    // NewWebhookTarget - creates new Webhook target.
    func NewWebhookTarget(ctx context.Context, id string, args WebhookArgs, loggerOnce logger.LogOnce, transport *http.Transport) (*WebhookTarget, error) {
    	ctx, cancel := context.WithCancel(ctx)
    
    	target := &WebhookTarget{
    		id:         event.TargetID{ID: id, Name: "webhook"},
    		args:       args,
    		loggerOnce: loggerOnce,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 08 21:39:49 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top