Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Txn (0.04 sec)

  1. pkg/registry/core/service/storage/alloc.go

    	//happen later.
    	if txn, err := al.txnAllocClusterIPs(service, dryRun); err != nil {
    		return nil, err
    	} else {
    		result = append(result, txn)
    	}
    
    	// Allocate ports
    	if txn, err := al.txnAllocNodePorts(service, dryRun); err != nil {
    		return nil, err
    	} else {
    		result = append(result, txn)
    	}
    
    	success = true
    	return result, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  2. pkg/registry/core/service/storage/storage.go

    	// defaulting) because it needs to be aware of flags and be able to access
    	// API storage.
    	txn, err := r.alloc.allocateCreate(svc, dryrun.IsDryRun(options.DryRun))
    	if err != nil {
    		return nil, err
    	}
    
    	// Our cleanup callback
    	finish := func(_ context.Context, success bool) {
    		if success {
    			txn.Commit()
    		} else {
    			txn.Revert()
    		}
    	}
    
    	return finish, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go

    	startTime := time.Now()
    	txnResp, err := s.client.KV.Txn(ctx).If(
    		notFound(preparedKey),
    	).Then(
    		clientv3.OpPut(preparedKey, string(newData), opts...),
    	).Commit()
    	metrics.RecordEtcdRequest("create", s.groupResourceString, err, startTime)
    	if err != nil {
    		span.AddEvent("Txn call failed", attribute.String("err", err.Error()))
    		return err
    	}
    	span.AddEvent("Txn call succeeded")
    
    	if !txnResp.Succeeded {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top