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

« back to all changes in this revision

Viewing changes to libmemcached/purge.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:
44
44
class Purge
45
45
{
46
46
public:
47
 
  Purge(memcached_st* arg) :
 
47
  Purge(Memcached* arg) :
48
48
    _memc(arg)
49
49
  {
50
50
    memcached_set_purging(_memc, true);
56
56
  }
57
57
 
58
58
private:
59
 
  memcached_st* _memc;
 
59
  Memcached* _memc;
60
60
};
61
61
 
62
62
class PollTimeout
63
63
{
64
64
public:
65
 
  PollTimeout(memcached_st* arg) :
 
65
  PollTimeout(Memcached* arg) :
66
66
    _timeout(arg->poll_timeout),
67
67
    _origin(arg->poll_timeout)
68
68
  {
81
81
 
82
82
bool memcached_purge(org::libmemcached::Instance* ptr)
83
83
{
84
 
  memcached_st *root= (memcached_st *)ptr->root;
 
84
  Memcached *root= (Memcached *)ptr->root;
85
85
 
86
86
  if (memcached_is_purging(ptr->root) || /* already purging */
87
87
      (memcached_server_response_count(ptr) < ptr->root->io_msg_watermark &&