mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx-testing: добавление опции --db-upto-gb
в стохастический скрипт.
This commit is contained in:
parent
f477fa13e0
commit
0c9f531c72
@ -36,6 +36,7 @@ do
|
||||
echo "--loops NN Stop after the NN loops"
|
||||
echo "--dir PATH Specifies directory for test DB and other files (it will be cleared)"
|
||||
echo "--db-upto-mb NN Limits upper size of test DB to the NN megabytes"
|
||||
echo "--db-upto-gb NN --''--''--''--''--''--''--''--''-- NN gigabytes"
|
||||
echo "--no-geometry-jitter Disable jitter for geometry upper-size"
|
||||
echo "--pagesize NN Use specified page size (256 is minimal and used by default)"
|
||||
echo "--dont-check-ram-size Don't check available RAM"
|
||||
@ -118,6 +119,14 @@ do
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
--db-upto-gb)
|
||||
DB_UPTO_MB=$(($2 * 1024))
|
||||
if [ -z "$DB_UPTO_MB" -o "$DB_UPTO_MB" -lt 1 -o "$DB_UPTO_MB" -gt 4194304 ]; then
|
||||
echo "Invalid value '$2' for --db-upto-gb option"
|
||||
exit -2
|
||||
fi
|
||||
shift
|
||||
;;
|
||||
--no-geometry-jitter)
|
||||
GEOMETRY_JITTER=no
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user