cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1003202 - /cassandra/trunk/conf/cassandra-env.sh
Date Thu, 30 Sep 2010 18:49:49 GMT
Author: eevans
Date: Thu Sep 30 18:49:48 2010
New Revision: 1003202

URL: http://svn.apache.org/viewvc?rev=1003202&view=rev
Log:
squelch output from shell include (config)

It's bad form to have output from an include like this. If it is
critical that the user be made aware of the heap size (I'm not sure
it is), then it should either be logged from the application or
echoed from bin/cassandra (though the latter is still a bad idea).

Patch by eevans

Modified:
    cassandra/trunk/conf/cassandra-env.sh

Modified: cassandra/trunk/conf/cassandra-env.sh
URL: http://svn.apache.org/viewvc/cassandra/trunk/conf/cassandra-env.sh?rev=1003202&r1=1003201&r2=1003202&view=diff
==============================================================================
--- cassandra/trunk/conf/cassandra-env.sh (original)
+++ cassandra/trunk/conf/cassandra-env.sh Thu Sep 30 18:49:48 2010
@@ -40,11 +40,7 @@ calculate_heap_size()
 # MAX_HEAP_SIZE="4G"
 
 if [ "x$MAX_HEAP_SIZE" = "x" ]; then
-    if calculate_heap_size; then
-        echo "Using adaptive heap size: " $MAX_HEAP_SIZE
-    else
-        echo "Using default heap size: " $MAX_HEAP_SIZE
-    fi
+    calculate_heap_size
 fi
 
 # Specifies the default port over which Cassandra will be available for



Mime
View raw message