Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 938 for NIL (0.01 sec)

  1. cmd/server_test.go

    	c.Assert(err, nil)
    
    	// execute the HTTP request.
    	response, err = s.client.Do(request)
    
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	request, err = newTestSignedRequest(http.MethodGet, getGetObjectURL(s.endPoint, bucketName, "my-object-directory/"),
    		0, nil, s.accessKey, s.secretKey, s.signer)
    	c.Assert(err, nil)
    
    	// execute the HTTP request.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
  2. internal/event/target/amqp.go

    		}
    
    		// close when we know this is a network error.
    		target.conn.Close()
    	}
    
    	conn, err = amqp091.Dial(target.args.URL.String())
    	if err != nil {
    		if xnet.IsConnRefusedErr(err) {
    			return nil, nil, store.ErrNotConnected
    		}
    		return nil, nil, err
    	}
    
    	ch, err = conn.Channel()
    	if err != nil {
    		return nil, nil, err
    	}
    
    	target.conn = conn
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. internal/dsync/lock-args_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Source)
    	if err != nil {
    		err = msgp.WrapError(err, "Source")
    		return
    	}
    	// write "Quorum"
    	err = en.Append(0xa6, 0x51, 0x75, 0x6f, 0x72, 0x75, 0x6d)
    	if err != nil {
    		return
    	}
    	if z.Quorum == nil {
    		err = en.WriteNil()
    		if err != nil {
    			return
    		}
    	} else {
    		err = en.WriteInt(*z.Quorum)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. cmd/erasure-heal_test.go

    		for j := 0; j < len(staleDisks); j++ {
    			if j < test.offDisks {
    				readers[j] = nil
    			} else {
    				staleDisks[j] = nil
    			}
    		}
    		for j := 0; j < test.badDisks; j++ {
    			switch r := readers[test.offDisks+j].(type) {
    			case *streamingBitrotReader:
    				r.disk = badDisk{nil}
    			case *wholeBitrotReader:
    				r.disk = badDisk{nil}
    			}
    		}
    		for j := 0; j < test.badStaleDisks; j++ {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. internal/bucket/replication/rule.go

    	if err := r.validateID(); err != nil {
    		return err
    	}
    	if err := r.validateStatus(); err != nil {
    		return err
    	}
    	if err := r.validateFilter(); err != nil {
    		return err
    	}
    	if err := r.DeleteMarkerReplication.Validate(); err != nil {
    		return err
    	}
    	if err := r.DeleteReplication.Validate(); err != nil {
    		return err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 24 23:22:20 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  6. tests/update_has_many_test.go

    )
    
    func TestUpdateHasManyAssociations(t *testing.T) {
    	user := *GetUser("update-has-many", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Pets = []*Pet{{Name: "pet1"}, {Name: "pet2"}}
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    	DB.Preload("Pets").Find(&user2, "id = ?", user.ID)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 2K bytes
    - Viewed (0)
  7. cmd/event-notification.go

    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	if err := evnot.targetList.Add(globalNotifyTargetList.Targets()...); err != nil {
    		return err
    	}
    	evnot.targetList = evnot.targetList.Init(runtime.GOMAXPROCS(0)) // TODO: make this configurable (y4m4)
    	return nil
    }
    
    // AddRulesMap - adds rules map for bucket name.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. internal/lock/lock_nix.go

    	default:
    		return nil, &os.PathError{
    			Op:   "open",
    			Path: path,
    			Err:  syscall.EINVAL,
    		}
    	}
    
    	f, err := os.OpenFile(path, flag|syscall.O_SYNC, perm)
    	if err != nil {
    		return nil, err
    	}
    
    	if err = syscall.Flock(int(f.Fd()), lockType); err != nil {
    		f.Close()
    		if err == syscall.EWOULDBLOCK {
    			err = ErrAlreadyLocked
    		}
    		return nil, err
    	}
    
    	st, err := os.Stat(path)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  9. cmd/site-replication-utils_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "Status")
    				return
    			}
    		case "did":
    			z.DeplID, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "DeplID")
    				return
    			}
    		case "bkts":
    			var zb0002 uint32
    			zb0002, err = dc.ReadMapHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "BucketStatuses")
    				return
    			}
    			if z.BucketStatuses == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Nov 14 15:16:40 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  10. association.go

    				}
    
    				for _, ref := range rel.References {
    					updateMap[ref.ForeignKey.DBName] = nil
    				}
    
    				association.Error = association.DB.UpdateColumns(updateMap).Error
    			}
    			if association.Unscope && oldBelongsToExpr != nil {
    				association.Error = association.DB.Model(nil).Where(oldBelongsToExpr).Delete(reflect.New(rel.FieldSchema.ModelType).Interface()).Error
    			}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top