Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 938 for Nil (0.03 sec)

  1. tests/update_test.go

    				return err
    			}
    			if err := tx.Preload("Token").First(&newOwner, owner.ID).Error; err != nil {
    				return err
    			}
    			return nil
    		}); err != nil {
    			return nil, err
    		}
    		return &newOwner, nil
    	}
    
    	owner := TokenOwner{
    		Name:  "user",
    		Token: Token{Content: "token"},
    	}
    	o1, err := saveTokenOwner(&owner)
    	if err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle.go

    	tgtClient, err := globalTierConfigMgr.getDriver(ctx, oi.TransitionedObject.Tier)
    	if err != nil {
    		return nil, fmt.Errorf("transition storage class not configured: %w", err)
    	}
    
    	fn, off, length, err := NewGetObjectReader(rs, oi, opts, h)
    	if err != nil {
    		return nil, ErrorRespToObjectError(err, bucket, object)
    	}
    	gopts := WarmBackendGetOpts{}
    
    	// get correct offsets for object
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    		doNameLookups = false
    		var err error
    		h.Gname, err = iface.Gname()
    		if err != nil {
    			return nil, err
    		}
    		h.Uname, err = iface.Uname()
    		if err != nil {
    			return nil, err
    		}
    	}
    	if sysStat != nil {
    		return h, sysStat(fi, h, doNameLookups)
    	}
    	return h, nil
    }
    
    // FileInfoNames extends [fs.FileInfo].
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle_test.go

    				ongoing: false,
    				expiry:  time.Date(2012, 12, 21, 0, 0, 0, 0, time.UTC),
    			},
    			expectedErr: nil,
    		},
    		{
    			// valid: represents an ongoing restore object request.
    			restoreHdr: `ongoing-request="true"`,
    			expectedStatus: restoreObjStatus{
    				ongoing: true,
    			},
    			expectedErr: nil,
    		},
    		{
    			// invalid; ongoing restore object request can't have expiry set on it.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  5. internal/crypto/metadata_test.go

    		keyID, dataKey, sealedKey, err := S3.ParseMetadata(test.Metadata)
    		if err != nil && test.ExpectedErr == nil {
    			t.Errorf("Test %d: got error '%v' - want error '%v'", i, err, test.ExpectedErr)
    		}
    		if err == nil && test.ExpectedErr != nil {
    			t.Errorf("Test %d: got error '%v' - want error '%v'", i, err, test.ExpectedErr)
    		}
    		if err != nil && test.ExpectedErr != nil {
    			if err.Error() != test.ExpectedErr.Error() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. cmd/metrics-v3-cache.go

    }
    
    func newClusterStorageInfoCache() *cachevalue.Cache[storageMetrics] {
    	loadStorageInfo := func(ctx context.Context) (v storageMetrics, err error) {
    		objLayer := newObjectLayerFn()
    		if objLayer == nil {
    			return storageMetrics{}, nil
    		}
    		storageInfo := objLayer.StorageInfo(GlobalContext, true)
    		onlineDrives, offlineDrives := getOnlineOfflineDisksStats(storageInfo.Disks)
    		totalDrives := onlineDrives.Merge(offlineDrives)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. internal/dsync/drwmutex.go

    		go func(index int, isReadLock bool, c NetLocker) {
    			defer wg.Done()
    
    			g := Granted{index: index}
    			if c == nil {
    				log("dsync: nil locker\n")
    				ch <- g
    				return
    			}
    
    			var locked bool
    			var err error
    			if isReadLock {
    				if locked, err = c.RLock(netLockCtx, args); err != nil {
    					log("dsync: Unable to call RLock failed with %s for %#v at %s\n", err, args, c)
    				}
    			} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 15:49:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. clause/delete_test.go

    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Delete{}, clause.From{}},
    			"DELETE FROM `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Delete{Modifier: "LOW_PRIORITY"}, clause.From{}},
    			"DELETE LOW_PRIORITY FROM `users`", nil,
    		},
    	}
    
    	for idx, result := range results {
    		t.Run(fmt.Sprintf("case #%v", idx), func(t *testing.T) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Jun 02 01:18:01 UTC 2020
    - 608 bytes
    - Viewed (0)
  9. src/bytes/buffer.go

    // String returns the contents of the unread portion of the buffer
    // as a string. If the [Buffer] is a nil pointer, it returns "<nil>".
    //
    // To build strings more efficiently, see the [strings.Builder] type.
    func (b *Buffer) String() string {
    	if b == nil {
    		// Special case, useful in debugging.
    		return "<nil>"
    	}
    	return string(b.buf[b.off:])
    }
    
    // empty reports whether the unread portion of the buffer is empty.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 16:47:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. cmd/service.go

    	globalServiceFreezeMu.Lock()
    	// Close when we reach 0
    	globalServiceFreezeCnt--
    	if globalServiceFreezeCnt <= 0 {
    		// Set to a nil channel.
    		var _ch chan struct{}
    		if val := globalServiceFreeze.Swap(_ch); val != nil {
    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Feb 28 07:02:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top