Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for updating (0.16 sec)

  1. internal/cachevalue/cache.go

    	if t.opts.NoWait && v != nil && tNow-vTime < ttl.Milliseconds()*2 && (v.e == nil || t.opts.CacheError) {
    		if t.updating.TryLock() {
    			go func() {
    				defer t.updating.Unlock()
    				t.update()
    			}()
    		}
    		return v.v, v.e
    	}
    
    	// Get lock. Either we get it or we wait for it.
    	t.updating.Lock()
    	if time.Since(time.UnixMilli(t.lastUpdateMs.Load())) < ttl {
    		// There is a new value, release lock and return it.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 16:00:42 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. chainable_api.go

    	tx = db.getInstance()
    	tx.Statement.Distinct = true
    	if len(args) > 0 {
    		tx = tx.Select(args[0], args[1:]...)
    	}
    	return
    }
    
    // Select specify fields that you want when querying, creating, updating
    //
    // Use Select when you only want a subset of the fields. By default, GORM will select all fields.
    // Select accepts both string arguments and arrays.
    //
    //	// Select name and age of user using multiple arguments
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  3. cmd/metacache-server-pool.go

    				go func(meta metacache) {
    					// Continuously update while we wait.
    					t := time.NewTicker(metacacheMaxClientWait / 10)
    					defer t.Stop()
    					select {
    					case <-ctx.Done():
    						// Request is done, stop updating.
    						return
    					case <-t.C:
    						meta.lastHandout = time.Now()
    						meta, _ = rpc.UpdateMetacacheListing(ctx, meta)
    					}
    				}(*c)
    			}
    		}
    	}
    
    	if o.ID != "" && !o.Transient {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    		delete(cache.iamGroupsMap, group)
    		cache.iamGroupPolicyMap.Delete(group)
    
    		cache.updatedAt = time.Now()
    		return nil
    	}
    
    	gi := cache.iamGroupsMap[group]
    
    	// Updating the group memberships cache happens in two steps:
    	//
    	// 1. Remove the group from each user's list of memberships.
    	// 2. Add the group to each member's list of memberships.
    	//
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  5. cmd/bucket-replication.go

    	object := ri.Name
    
    	// set defaults for replication action based on operation being performed - actual
    	// replication action can only be determined after stat on remote. This default is
    	// needed for updating replication metrics correctly when target is offline.
    	rAction := replicateMetadata
    
    	rinfo = replicatedTargetInfo{
    		Size:                  ri.ActualSize,
    		Arn:                   tgt.ARN,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  6. cmd/erasure-object.go

    		queued:    time.Now(),
    	})
    }
    
    func (er erasureObjects) PutObjectMetadata(ctx context.Context, bucket, object string, opts ObjectOptions) (ObjectInfo, error) {
    	if !opts.NoLock {
    		// Lock the object before updating metadata.
    		lk := er.NewNSLock(bucket, object)
    		lkctx, err := lk.GetLock(ctx, globalOperationTimeout)
    		if err != nil {
    			return ObjectInfo{}, err
    		}
    		ctx = lkctx.Context()
    		defer lk.Unlock(lkctx)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  7. istioctl/pkg/admin/istiodconfig.go

    				err       error
    				scopeName string
    			}{err: err, scopeName: si.Name}
    		}(scope)
    	}
    	wg.Wait()
    	close(ch)
    	for result := range ch {
    		if result.err != nil {
    			return fmt.Errorf("failed updating Scope %s: %v", result.scopeName, result.err)
    		}
    	}
    	return nil
    }
    
    func (c *ControlzClient) GetScope(scope string) (*ScopeInfo, error) {
    	var s ScopeInfo
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  8. cmd/object-api-interface.go

    	CheckPrecondFn      CheckPreconditionFn // only set during GetObject/HeadObject/CopyObjectPart preconditional valuation
    	EvalMetadataFn      EvalMetadataFn      // only set for retention settings, meant to be used only when updating metadata in-place.
    	DeleteReplication   ReplicationState    // Represents internal replication state needed for Delete replication
    	Transition          TransitionOptions
    	Expiration          ExpirationOptions
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 17K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users.go

    		return
    	}
    
    	user, exists := globalIAMSys.GetUser(ctx, accessKey)
    	if exists && (user.Credentials.IsTemp() || user.Credentials.IsServiceAccount()) {
    		// Updating STS credential is not allowed, and this API does not
    		// support updating service accounts.
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAddUserInvalidArgument), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    		if err != nil {
    			return err
    		}
    
    		_, err = globalBucketMetadataSys.Update(ctx, bucket, bucketReplicationConfig, replCfgData)
    		return c.annotatePeerErr(peer.Name, "Error updating replication configuration", err)
    	}
    
    	c.RLock()
    	defer c.RUnlock()
    	errMap := make(map[string]error, len(c.state.Peers))
    	for d, peer := range c.state.Peers {
    		if d == globalDeploymentID() {
    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)
Back to top