~brianaker/libmemcached/merge-1.0-april-2013

« back to all changes in this revision

Viewing changes to libmemcached/stats.cc

  • Committer: Continuous Integration
  • Date: 2013-01-14 21:10:11 UTC
  • mfrom: (1094.1.2 libmemcached-1.2)
  • Revision ID: ci@tangent.org-20130114211011-qql124fta45s730w
Merge lp:~tangent-org/libmemcached/1.2-build/ Build: jenkins-Libmemcached-199

Show diffs side-by-side

added added

removed removed

Lines of Context:
514
514
  return rc;
515
515
}
516
516
 
517
 
memcached_stat_st *memcached_stat(memcached_st *self, char *args, memcached_return_t *error)
 
517
memcached_stat_st *memcached_stat(memcached_st *shell, char *args, memcached_return_t *error)
518
518
{
 
519
  Memcached* self= memcached2Memcached(shell);
519
520
  memcached_return_t unused;
520
521
  if (error == NULL)
521
522
  {
652
653
  We make a copy of the keys since at some point in the not so distant future
653
654
  we will add support for "found" keys.
654
655
*/
655
 
char ** memcached_stat_get_keys(memcached_st *memc,
 
656
char ** memcached_stat_get_keys(memcached_st *shell,
656
657
                                memcached_stat_st *,
657
658
                                memcached_return_t *error)
658
659
{
 
660
  Memcached* memc= memcached2Memcached(shell);
659
661
  if (memc)
660
662
  {
661
663
    char **list= static_cast<char **>(libmemcached_malloc(memc, sizeof(memcached_stat_keys)));
712
714
  return MEMCACHED_INVALID_ARGUMENTS;
713
715
}
714
716
 
715
 
memcached_return_t memcached_stat_execute(memcached_st *memc, const char *args,  memcached_stat_fn func, void *context)
 
717
memcached_return_t memcached_stat_execute(memcached_st *shell, const char *args,  memcached_stat_fn func, void *context)
716
718
{
 
719
  Memcached* memc= memcached2Memcached(shell);
717
720
  if (memcached_fatal(memcached_version(memc)))
718
721
  {
719
722
    return memcached_last_error(memc);