You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2013/02/09 01:19:43 UTC
[1/3] git commit: fix bash string comp
fix bash string comp
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0820b20f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0820b20f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0820b20f
Branch: refs/heads/cassandra-1.2
Commit: 0820b20fb259a015d856263ac3d59edcf6327dae
Parents: 6bef66b
Author: Brandon Williams <br...@apache.org>
Authored: Fri Feb 8 18:19:44 2013 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Fri Feb 8 18:19:44 2013 -0600
----------------------------------------------------------------------
conf/cassandra-env.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/0820b20f/conf/cassandra-env.sh
----------------------------------------------------------------------
diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh
index 527dba0..462244c 100644
--- a/conf/cassandra-env.sh
+++ b/conf/cassandra-env.sh
@@ -202,7 +202,8 @@ JVM_OPTS="$JVM_OPTS -XX:SurvivorRatio=8"
JVM_OPTS="$JVM_OPTS -XX:MaxTenuringThreshold=1"
JVM_OPTS="$JVM_OPTS -XX:CMSInitiatingOccupancyFraction=75"
JVM_OPTS="$JVM_OPTS -XX:+UseCMSInitiatingOccupancyOnly"
-if [ "$JVM_VERSION" \> "1.6.0" ]; then
+# note: bash evals '1.7.x' as > '1.7' so this is really a >= 1.7 jvm check
+if [ "$JVM_VERSION" \> "1.7" ] ; then
JVM_OPTS="$JVM_OPTS -XX:+UseCondCardMark"
fi