summaryrefslogtreecommitdiffstats
path: root/client/go/prog/madvise.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/prog/madvise.go')
-rw-r--r--client/go/prog/madvise.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/go/prog/madvise.go b/client/go/prog/madvise.go
index fda6aa3bea0..7312e345e8d 100644
--- a/client/go/prog/madvise.go
+++ b/client/go/prog/madvise.go
@@ -4,14 +4,15 @@
package prog
import (
+ "github.com/vespa-engine/vespa/client/go/envvars"
"github.com/vespa-engine/vespa/client/go/trace"
)
func (spec *Spec) ConfigureUseMadvise() {
- limit := spec.valueFromListEnv(ENV_VESPA_USE_MADVISE_LIST)
+ limit := spec.valueFromListEnv(envvars.VESPA_USE_MADVISE_LIST)
if limit != "" {
- trace.Trace("shall use madvise with limit", limit, "as set in", ENV_VESPA_USE_MADVISE_LIST)
- spec.Setenv(ENV_VESPA_MALLOC_MADVISE_LIMIT, limit)
+ trace.Trace("shall use madvise with limit", limit, "as set in", envvars.VESPA_USE_MADVISE_LIST)
+ spec.Setenv(envvars.VESPA_MALLOC_MADVISE_LIMIT, limit)
return
}
}