[#1130] Fix YDB-F-CMD in GDE
Symptom
- There should have been a VALTOBIG error, but instead there was a command not found error. This has been fixed in this commit.
Reproducing the error
- To reproduce the error you can run these commands in bash.
unset gtmgbldir ydb_gbldir
export gtmroutines="$gtm_dist"
export gtmgbldir="/tmp/mumps.gld"
rm -f $gtmgbldir
$gtm_dist/mumps -run GDE change -region DEFAULT -journal="(allocation=7340026,autoswitchlimit=7340025)"
- Before this change you would get this output from the above commands.
%GDE-I-GDUSEDEFS, Using defaults for Global Directory
/tmp/yottadb.gld
%YDB-F-CMD, Command expected but not found
- After this change you will get this output.
%GDE-I-VALTOOBIG, 7340026 is larger than the maximum of 7340025 (AUTOSWITCHLIMIT) for a ALLOCATION
Cause
- The error occurred due to a bug in sr_unix/gdeverif.m where due to misplaced quotes inside of outer quotes there was an odd number of quotation marks in the string being passed in, making it invalid. As the string being passed into message^GDE was not formatted correctly, when the program tried to call message^GDE, it encountered an error and reported that error instead of the correct error.
Fix
- To fix this, the formatting was simply fixed so the code passes the correct string into message^GDE.
Issue link
Edited by Ben Chermside