Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for saveConfig (0.18 sec)

  1. cmd/data-scanner.go

    	if globalIsErasureSD {
    		return
    	}
    
    	b, err := json.Marshal(info)
    	if err != nil {
    		bugLogIf(ctx, err)
    		return
    	}
    	// Get last healing information
    	err = saveConfig(ctx, objAPI, backgroundHealInfoPath, b)
    	if err != nil {
    		internalLogIf(ctx, err)
    	}
    }
    
    // runDataScanner will start a data scanner.
    // The function will block until the context is canceled.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    	}
    
    	save := func(name string, timeout time.Duration) error {
    		// Abandon if more than a minute, so we don't hold up scanner.
    		ctx, cancel := context.WithTimeout(ctx, timeout)
    		defer cancel()
    
    		return saveConfig(ctx, store, pathJoin(bucketMetaPrefix, name), buf.Bytes())
    	}
    	defer save(name+".bkp", 5*time.Second) // Keep a backup as well
    
    	// drive timeout by default is 2 minutes, we do not need to wait longer.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top