We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a47ddf0 commit 2bf863eCopy full SHA for 2bf863e
.github/workflows/start_mongo.sh
@@ -6,13 +6,12 @@ mongodb_dir=$(find ${PWD}/ -type d -name "mongodb-linux-x86_64*")
6
7
mkdir $mongodb_dir/data
8
9
-$mongodb_dir/bin/mongod \
10
- --dbpath $mongodb_dir/data \
11
- --logpath $mongodb_dir/mongodb.log \
12
- --fork \
13
- --setParameter maxTransactionLockRequestTimeoutMillis=1000 \
14
- --replSet \
15
- mongoengine
+args=(--dbpath $mongodb_dir/data --logpath $mongodb_dir/mongodb.log --fork --replSet mongoengine)
+if (( $(echo "$MONGODB > 3.8" | bc -l) )); then
+ args+=(--setParameter maxTransactionLockRequestTimeoutMillis=1000)
+fi
+
+$mongodb_dir/bin/mongod "${args[@]}"
16
17
if (( $(echo "$MONGODB < 6.0" | bc -l) )); then
18
mongo --verbose --eval "rs.initiate()"
0 commit comments