Skip to content

Commit 0dd07f1

Browse files
committed
genconfig: add raptorx_cache_enabled and fix ExpandHomeDirectory
1 parent a9aa871 commit 0dd07f1

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

cmd/genconfig/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type ClusterConfig struct {
1212
VCPUPerWorker uint `json:"vcpu_per_worker"`
1313
SpillEnabled bool `json:"spill_enabled,omitempty"`
1414
SsdCacheSize uint `json:"ssd_cache_size,omitempty"`
15+
RaptorXCacheEnabled bool `json:"raptorx_cache_enabled,omitempty"`
1516
GeneratorParameters *GeneratorParameters `json:"generator_parameters,omitempty"`
1617
ContainerMemoryGb uint `json:"-"`
1718
HeadroomGb uint `json:"-"`

cmd/loadjson.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ var loadJsonCmd = &cobra.Command{
2323
if loadjson.Parallelism < 1 || loadjson.Parallelism > runtime.NumCPU() {
2424
return fmt.Errorf("invalid parallelism: %d, it should be >= 1 and <= %d", loadjson.Parallelism, runtime.NumCPU())
2525
}
26+
utils.ExpandHomeDirectory(&loadjson.MySQLCfgPath)
27+
utils.ExpandHomeDirectory(&loadjson.InfluxCfgPath)
2628
utils.ExpandHomeDirectory(&loadjson.OutputPath)
2729
return nil
2830
},

cmd/loadjson/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ func processFile(ctx context.Context, path string) {
232232
}
233233

234234
func processPath(ctx context.Context, path string) error {
235+
utils.ExpandHomeDirectory(&path)
235236
stat, err := os.Stat(path)
236237
if err != nil {
237238
return err

cmd/run/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ func Run(_ *cobra.Command, args []string) {
3232
log.Fatal().Err(parseErr).Str("server_url", PrestoFlags.ServerUrl).Msg("failed to parse server URL")
3333
}
3434
utils.ExpandHomeDirectory(&OutputPath)
35+
utils.ExpandHomeDirectory(&InfluxCfgPath)
36+
utils.ExpandHomeDirectory(&MySQLCfgPath)
37+
utils.ExpandHomeDirectory(&PulumiCfgPath)
3538
mainStage := &stage.Stage{
3639
States: &stage.SharedStageStates{
3740
RunName: Name,

0 commit comments

Comments
 (0)