projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Abstraction (which will save us merge hell with 1.2).
[awesomized/libmemcached]
/
libmemcached
/
stats.cc
diff --git
a/libmemcached/stats.cc
b/libmemcached/stats.cc
index 6bab673d0273322cf7b412523f86bb29e6ee3820..89d5be52382bb57387c006e06ee4172ade1802e3 100644
(file)
--- a/
libmemcached/stats.cc
+++ b/
libmemcached/stats.cc
@@
-514,8
+514,9
@@
static memcached_return_t ascii_stats_fetch(memcached_stat_st *memc_stat,
return rc;
}
return rc;
}
-memcached_stat_st *memcached_stat(memcached_st *s
elf
, char *args, memcached_return_t *error)
+memcached_stat_st *memcached_stat(memcached_st *s
hell
, char *args, memcached_return_t *error)
{
{
+ Memcached* self= memcached2Memcached(shell);
memcached_return_t unused;
if (error == NULL)
{
memcached_return_t unused;
if (error == NULL)
{
@@
-652,10
+653,11
@@
memcached_return_t memcached_stat_servername(memcached_stat_st *memc_stat, char
We make a copy of the keys since at some point in the not so distant future
we will add support for "found" keys.
*/
We make a copy of the keys since at some point in the not so distant future
we will add support for "found" keys.
*/
-char ** memcached_stat_get_keys(memcached_st *
memc
,
+char ** memcached_stat_get_keys(memcached_st *
shell
,
memcached_stat_st *,
memcached_return_t *error)
{
memcached_stat_st *,
memcached_return_t *error)
{
+ Memcached* memc= memcached2Memcached(shell);
if (memc)
{
char **list= static_cast<char **>(libmemcached_malloc(memc, sizeof(memcached_stat_keys)));
if (memc)
{
char **list= static_cast<char **>(libmemcached_malloc(memc, sizeof(memcached_stat_keys)));
@@
-712,8
+714,9
@@
static memcached_return_t call_stat_fn(memcached_st *memc,
return MEMCACHED_INVALID_ARGUMENTS;
}
return MEMCACHED_INVALID_ARGUMENTS;
}
-memcached_return_t memcached_stat_execute(memcached_st *
memc
, const char *args, memcached_stat_fn func, void *context)
+memcached_return_t memcached_stat_execute(memcached_st *
shell
, const char *args, memcached_stat_fn func, void *context)
{
{
+ Memcached* memc= memcached2Memcached(shell);
if (memcached_fatal(memcached_version(memc)))
{
return memcached_last_error(memc);
if (memcached_fatal(memcached_version(memc)))
{
return memcached_last_error(memc);