summaryrefslogtreecommitdiffstats
path: root/sca-cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-12-14 03:35:21 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-12-14 03:35:21 +0000
commitf50225bacdb1d5fb08fb6a3753d759afa37415db (patch)
tree18679b43435729fddfd6f11da75e20fb5e22f8d1 /sca-cpp
parentf0ae609332a5ccc097d7be6899fe0259170e714d (diff)
Change memcached component configuration syntax to use spaces instead of commas between memcached addresses.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1214043 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp')
-rw-r--r--sca-cpp/trunk/components/cache/cache.composite4
-rw-r--r--sca-cpp/trunk/components/cache/memcache.cpp2
-rw-r--r--sca-cpp/trunk/samples/store-cluster/shared/shared.composite2
3 files changed, 4 insertions, 4 deletions
diff --git a/sca-cpp/trunk/components/cache/cache.composite b/sca-cpp/trunk/components/cache/cache.composite
index 2f22e424f9..8a96b6161b 100644
--- a/sca-cpp/trunk/components/cache/cache.composite
+++ b/sca-cpp/trunk/components/cache/cache.composite
@@ -26,7 +26,7 @@
<service name="memcache">
<binding.http uri="memcache"/>
</service>
- <property name="servers">localhost,localhost:11212,localhost:11213</property>
+ <property name="servers">localhost localhost:11212 localhost:11213</property>
</component>
<component name="l2cache">
@@ -34,7 +34,7 @@
<service name="l2cache">
<binding.http uri="l2cache"/>
</service>
- <property name="servers">localhost:11411,localhost:11412,localhost:11413</property>
+ <property name="servers">localhost:11411 localhost:11412 localhost:11413</property>
</component>
<component name="datacache">
diff --git a/sca-cpp/trunk/components/cache/memcache.cpp b/sca-cpp/trunk/components/cache/memcache.cpp
index 4b62ce2e4c..768bcffb67 100644
--- a/sca-cpp/trunk/components/cache/memcache.cpp
+++ b/sca-cpp/trunk/components/cache/memcache.cpp
@@ -102,7 +102,7 @@ private:
const failable<value> start(unused const list<value>& params) {
// Connect to memcached
const value servers = ((lambda<value(list<value>)>)car(params))(list<value>());
- memcache::MemCached& ch = *(new (gc_new<memcache::MemCached>()) memcache::MemCached(tokenize(",", servers)));
+ memcache::MemCached& ch = *(new (gc_new<memcache::MemCached>()) memcache::MemCached(tokenize(" ", servers)));
// Return the component implementation lambda function
return value(lambda<value(const list<value>&)>(applyCache(ch)));
diff --git a/sca-cpp/trunk/samples/store-cluster/shared/shared.composite b/sca-cpp/trunk/samples/store-cluster/shared/shared.composite
index 13b6fd5c80..b8049343f5 100644
--- a/sca-cpp/trunk/samples/store-cluster/shared/shared.composite
+++ b/sca-cpp/trunk/samples/store-cluster/shared/shared.composite
@@ -37,7 +37,7 @@
<service name="Memcache">
<binding.atom uri="memcache"/>
</service>
- <property name="servers">localhost:11211,localhost:11212,localhost:11213</property>
+ <property name="servers">localhost:11211 localhost:11212 localhost:11213</property>
</component>
<component name="Masterdb">