List:Commits« Previous MessageNext Message »
From:John David Duncan Date:April 18 2011 8:08pm
Subject:bzr commit into mysql-5.1-telco-7.2 branch (john.duncan:4159)
View as plain text  
#At file:///Users/jdd/bzr-repo/working/cluster-7.2-bernd/ based on revid:john.duncan@stripped

 4159 John David Duncan	2011-04-18
      sandbox script: ability to stop memcached only and start memcached with options

    modified:
      storage/ndb/memcache/sandbox.sh.in
=== modified file 'storage/ndb/memcache/sandbox.sh.in'
--- a/storage/ndb/memcache/sandbox.sh.in	2011-04-09 07:36:24 +0000
+++ b/storage/ndb/memcache/sandbox.sh.in	2011-04-18 20:08:02 +0000
@@ -113,7 +113,7 @@ load_metadata() {
 start_memcached() {
   $MEMCACHE_BASE/bin/memcached -d -v \
     -P $HOME_BASE/sandbox/memcached.pid \
-    -E $MEMCACHE_BASE/lib/ndb_engine.so
+    -E $MEMCACHE_BASE/lib/ndb_engine.so $1 $2
 }
 
 stop_memcached() {
@@ -142,6 +142,8 @@ final_message() {
 
 if test "$1" = "stop" 
  then 
+   test "$2" = "memcached"  &&   stop_memcached   &&  exit
+
    mysqld_is_running        &&   stop_mysqld
    memcached_is_running     &&   stop_memcached
    mgm_server_is_running    &&   stop_mgm_server
@@ -159,7 +161,7 @@ if test "$1" = "stop" 
   
   test -d sandbox/data/ndbmemcache    ||  load_metadata
   
-  memcached_is_running                ||  start_memcached  
+  memcached_is_running                ||  start_memcached
 
   final_message
 fi


Attachment: [text/bzr-bundle] bzr/john.duncan@oracle.com-20110418200802-axkg92mz44dxble3.bundle
Thread
bzr commit into mysql-5.1-telco-7.2 branch (john.duncan:4159) John David Duncan18 Apr