Whoops...fixed method that was returning an incorrect return type.
authorPadraig O'Sullivan <osullivan.padraig@gmail.com>
Fri, 24 Jul 2009 20:28:04 +0000 (16:28 -0400)
committerPadraig O'Sullivan <osullivan.padraig@gmail.com>
Fri, 24 Jul 2009 20:28:04 +0000 (16:28 -0400)
libmemcached/memcached.hh

index a2d3a90e817a6bc630f380c2bd7b7fcd9cd474dd..b6bcf516b52f8e7a25823e11b7a481966db66ac6 100644 (file)
@@ -116,7 +116,7 @@ public:
 
     if (key.empty())
     {
-      return false;
+      return ret_val;
     }
     char *value= memcached_get(&memc, key.c_str(), key.length(),
                                &value_length, &flags, &rc);
@@ -138,7 +138,7 @@ public:
 
     if (master_key.empty() || key.empty())
     {
-      return false;
+      return ret_val;
     }
     char *value= memcached_get_by_key(&memc, 
                                       master_key.c_str(), master_key.length(),