Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for UTCNow (0.16 sec)

  1. cmd/namespace-lock.go

    }
    
    // Lock - block until write lock is taken or timeout has occurred.
    func (di *distLockInstance) GetLock(ctx context.Context, timeout *dynamicTimeout) (LockContext, error) {
    	lockSource := getSource(2)
    	start := UTCNow()
    
    	newCtx, cancel := context.WithCancel(ctx)
    	if !di.rwMutex.GetLock(newCtx, cancel, di.opsID, lockSource, dsync.Options{
    		Timeout:       timeout.Timeout(),
    		RetryInterval: timeout.RetryInterval(),
    	}) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  2. cmd/bucket-replication_test.go

    			},
    			dsc: ReplicateDecision{targetsMap: map[string]replicateTargetDecision{"arn1": newReplicateTargetDecision("arn1", true, false)}},
    			rcfg: replicationConfig{
    				remotes: &madmin.BucketTargets{Targets: []madmin.BucketTarget{{
    					Arn:             "arn1",
    					ResetID:         "xyz",
    					ResetBeforeDate: UTCNow(),
    				}}},
    			},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 16 09:28:06 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  3. cmd/lock-rest-server-common_test.go

    		Owner:           "owner",
    		Writer:          true,
    		UID:             "0123-4567",
    		Timestamp:       UTCNow(),
    		TimeLastRefresh: UTCNow(),
    	}
    	lockRequesterInfo2 := lockRequesterInfo{
    		Owner:           "owner",
    		Writer:          true,
    		UID:             "89ab-cdef",
    		Timestamp:       UTCNow(),
    		TimeLastRefresh: UTCNow(),
    	}
    
    	locker.ll.lockMap["name"] = []lockRequesterInfo{
    		lockRequesterInfo1,
    		lockRequesterInfo2,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 23 17:26:21 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  4. cmd/metrics-realtime.go

    		}
    	}
    	if types.Contains(madmin.MetricsMem) {
    		m.Aggregated.Mem = &madmin.MemMetrics{
    			CollectedAt: UTCNow(),
    		}
    		m.Aggregated.Mem.Info = madmin.GetMemInfo(GlobalContext, byHostName)
    	}
    	if types.Contains(madmin.MetricsCPU) {
    		m.Aggregated.CPU = &madmin.CPUMetrics{
    			CollectedAt: UTCNow(),
    		}
    		cm, err := c.Times(false)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 10 16:28:08 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  5. cmd/storage-datatypes_test.go

    func BenchmarkDecodeFileInfoMsgp(b *testing.B) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 9.4K bytes
    - Viewed (0)
  6. cmd/admin-heal-ops.go

    		h.healFailedItemsMap[d.Endpoint+","+d.State]++
    	}
    
    	h.lastHealActivity = UTCNow()
    }
    
    func (h *healSequence) countHeals(healType madmin.HealItemType, healed bool) {
    	h.mutex.Lock()
    	defer h.mutex.Unlock()
    
    	if !healed {
    		h.scannedItemsMap[healType]++
    	} else {
    		h.healedItemsMap[healType]++
    	}
    
    	h.lastHealActivity = UTCNow()
    }
    
    // isQuitting - determines if the heal sequence is quitting (due to an
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  7. cmd/post-policy_test.go

    	"github.com/dustin/go-humanize"
    )
    
    const (
    	iso8601DateFormat = "20060102T150405Z"
    )
    
    func newPostPolicyBytesV4WithContentRange(credential, bucketName, objectKey string, expiration time.Time) []byte {
    	t := UTCNow()
    	// Add the expiration date.
    	expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat))
    	// Add the bucket condition, only accept buckets equal to the one passed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  8. cmd/bucket-replication-stats.go

    	r.mostRecentStatsMu.Lock()
    	if len(r.mostRecentStats.Stats) == 0 {
    		r.mostRecentStats = BucketStatsMap{Stats: make(map[string]BucketStats, 1), Timestamp: UTCNow()}
    	}
    	if len(bs.ReplicationStats.Stats) > 0 {
    		r.mostRecentStats.Stats[bucket] = bs
    	}
    	r.mostRecentStats.Timestamp = UTCNow()
    	r.mostRecentStatsMu.Unlock()
    	return bs
    }
    
    // get the most current of in-memory replication stats  and data usage info from crawler.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-decom_test.go

    	nmeta1.Pools = append(nmeta1.Pools, meta.Pools...)
    	for i, pool := range nmeta1.Pools {
    		if i == 0 {
    			nmeta1.Pools[i] = PoolStatus{
    				CmdLine:    pool.CmdLine,
    				ID:         i,
    				LastUpdate: UTCNow(),
    				Decommission: &PoolDecommissionInfo{
    					Complete: true,
    				},
    			}
    		}
    	}
    
    	var nmeta2 poolMeta
    	nmeta2.Version = poolMetaVersion
    	nmeta2.Pools = append(nmeta2.Pools, meta.Pools...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 03 16:47:40 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. cmd/local-locker.go

    			{
    				Name:            resource,
    				Writer:          true,
    				Source:          args.Source,
    				Owner:           args.Owner,
    				UID:             args.UID,
    				Timestamp:       UTCNow(),
    				TimeLastRefresh: UTCNow(),
    				Group:           len(args.Resources) > 1,
    				Quorum:          args.Quorum,
    				idx:             i,
    			},
    		}
    		l.lockUID[formatUUID(args.UID, i)] = resource
    	}
    	return true, nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top