smiklosovic commented on code in PR #1757:
URL: https://github.com/apache/cassandra/pull/1757#discussion_r930932862
##########
bin/cassandra:
##########
@@ -152,7 +152,7 @@ find_library()
pattern=$1
path=$(echo ${2} | tr ":" " ")
- find $path -regex "$pattern" -print 2>/dev/null | head -n 1
+ find $path -regex "$pattern" -print 2>/dev/null | sort -r | head -n 1
Review Comment:
If we have more than one libjemalloc package installed, even by accident,
like, both 1 and 2 versions, `sort -r` will sort it in descending order and
head will take the first one so we always use the newest libjemalloc library.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]