Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,948 for if (0.29 sec)

  1. internal/logger/logrotate.go

    	if w.f != nil {
    		if err := w.closeCurrentFile(); err != nil {
    			return err
    		}
    
    		// This function is a no-op if opts.Compress is false
    		// writes an error in JSON form to stderr, if we cannot
    		// compress.
    		if err := w.compress(); err != nil {
    			msg := fmt.Sprintf("unable to compress log file %v: %v, ignoring and moving on", w.f.Name(), err)
    			stdErrEnc.Encode(&log.Entry{
    				Level:   ErrorKind,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 11:38:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. internal/s3select/csv/reader.go

    		r.recordsRead = 0
    	}
    	csvRecord := r.current[r.recordsRead]
    	r.recordsRead++
    
    	// If no column names are set, use _(index)
    	if r.columnNames == nil {
    		r.columnNames = make([]string, len(csvRecord))
    		for i := range csvRecord {
    			r.columnNames[i] = fmt.Sprintf("_%v", i+1)
    		}
    	}
    
    	// If no index map, add that.
    	if r.nameIndexMap == nil {
    		r.nameIndexMap = make(map[string]int64)
    		for i := range r.columnNames {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. internal/event/target/mqtt.go

    	if err := target.init(); err != nil {
    		return err
    	}
    
    	// Do not send if the connection is not active.
    	_, err := target.isActive()
    	if err != nil {
    		return err
    	}
    
    	eventData, err := target.store.Get(key.Name)
    	if err != nil {
    		// The last event key in a successful batch will be sent in the channel atmost once by the replayEvents()
    		// Such events will not exist and wouldve been already been sent successfully.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  4. internal/bucket/replication/filter.go

    	if !f.And.isEmpty() {
    		if f.Prefix != "" {
    			return errInvalidFilter
    		}
    		if !f.Tag.IsEmpty() {
    			return errInvalidFilter
    		}
    		if err := f.And.Validate(); err != nil {
    			return err
    		}
    	}
    	if f.Prefix != "" {
    		if !f.Tag.IsEmpty() {
    			return errInvalidFilter
    		}
    	}
    	if !f.Tag.IsEmpty() {
    		if err := f.Tag.Validate(); err != nil {
    			return err
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 28 18:25:46 GMT 2022
    - 3.5K bytes
    - Viewed (2)
  5. internal/grid/manager.go

    	}
    	s := strings.Join(subroute, "/")
    	if debugPrint {
    		fmt.Println("RegisterSingleHandler: ", id.String(), "subroute:", s)
    	}
    
    	if len(subroute) == 0 {
    		if m.handlers.hasAny(id) && !id.isTestHandler() {
    			return fmt.Errorf("handler %v: %w", id.String(), ErrHandlerAlreadyExists)
    		}
    
    		m.handlers.single[id] = h
    		return nil
    	}
    	subID := makeSubHandlerID(id, s)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  6. istioctl/pkg/checkinject/checkinject.go

    					v, ok := podLabels[me.Key]
    					if !ok {
    						continue
    					}
    					for _, nv := range me.Values {
    						if nv == v {
    							return fmt.Sprintf("Pod has %s=%s label, preventing injection", me.Key, v), false
    						}
    					}
    				}
    			}
    		} else if podMatched {
    			if v, ok := nsLabels[analyzer_util.InjectionLabelName]; ok {
    				if v != "enabled" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. cmd/batch-expire_gen_test.go

    	v := BatchJobExpire{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  8. cmd/last-minute_gen_test.go

    	v := AccElem{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jul 05 21:45:49 GMT 2022
    - 6.8K bytes
    - Viewed (0)
  9. cmd/tier_gen.go

    			if z.Tiers == nil {
    				z.Tiers = make(map[string]madmin.TierConfig, zb0002)
    			} else if len(z.Tiers) > 0 {
    				for key := range z.Tiers {
    					delete(z.Tiers, key)
    				}
    			}
    			for zb0002 > 0 {
    				zb0002--
    				var za0001 string
    				var za0002 madmin.TierConfig
    				za0001, err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Tiers")
    					return
    				}
    				err = za0002.DecodeMsg(dc)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. cmd/xl-storage-errors.go

    	}
    	if errors.Is(err, syscall.EEXIST) && runtime.GOOS == "solaris" {
    		return true
    	}
    	var pathErr *os.PathError
    	if errors.As(err, &pathErr) {
    		if runtime.GOOS == globalWindowsOSName {
    			var errno syscall.Errno
    			if errors.As(pathErr.Err, &errno) {
    				// ERROR_DIR_NOT_EMPTY
    				return errno == 0x91
    			}
    		}
    	}
    	return false
    }
    
    // Check if the given error corresponds to the specific ERROR_PATH_NOT_FOUND for windows
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:29 GMT 2023
    - 3.8K bytes
    - Viewed (0)
Back to top