YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB
Other
76 stars 37 forks source link

[GTM-5059] Fix code to match V6.3-005 release note when gtm_mstack_crit_threshold env var is set to 0 #328

Closed nars1 closed 6 years ago

nars1 commented 6 years ago

The V6.3-005 release notes had the following mention about GTM-5059.

GT.M recognizes setting the environment variable gtm_mstack_crit_threshold to specify an integer
between 15 and 95 defining the percentage of the stack which should be used before GT.M emits a
STACKCRIT warning. If the value is below the minimum or above the maximum GT.M uses the minimum or
maximum respectively. The default is 90.

But in testing, we found that when gtm_mstack_crit_threshold env var is set to 0, the default is assumed whereas the release note indicates the minimum will be assumed (because 0 is less than the minimum of 15). The code is now fixed to match the release note so if the env var is set to 0, the minimum of 15 is assumed.