Skip to content

Commit

Permalink
[BugFix] Fix the failure of staring in docker v2 (StarRocks#16676)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoyli authored Jan 17, 2023
1 parent b394d1e commit dcdf323
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ export_mem_limit_from_conf() {
return 1
fi

if [[ (-v mem_limit) && ($mem_limit -le $mem_total) ]]; then
if [[ (-v mem_limit) && ("$mem_limit" != "max") && ($mem_limit -le $mem_total) ]]; then
mem_total=$mem_limit
fi


if [ "$mem_limit_is_set" == "false" ]; then
# if not set, the mem limit if 90% of total memory
mem=`expr $mem_total \* 90 / 100 / 1024`
Expand Down
Empty file modified bin/start_be.sh
100644 → 100755
Empty file.

0 comments on commit dcdf323

Please sign in to comment.