Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 0.861 kb
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef INVALID_VBTABLE_REMOVER_HH
#define INVALID_VBTABLE_REMOVER_HH 1
#include "common.hh"
#include "dispatcher.hh"
#include "stats.hh"
const int INVALID_VBTABLE_DEL_FREQ(600);
// Forward declaration.
class EventuallyPersistentEngine;
/**
* Periodically remove invalid vbucket tables from the underlying database
*/
class InvalidVBTableRemover : public DispatcherCallback {
public:
InvalidVBTableRemover(EventuallyPersistentEngine *e) : engine(e) { }
bool callback(Dispatcher &d, TaskId t);
/**
* Description of task.
*/
std::string description() {
std::string rv("Removing an invalid vbucket table from DB");
return rv;
}
private:
EventuallyPersistentEngine *engine;
};
#endif /* INVALID_VBTABLE_REMOVER_HH */
Jump to Line
Something went wrong with that request. Please try again.