summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-09-19 18:24:30 -0700
committerSage Weil <sage@inktank.com>2013-09-19 18:27:08 -0700
commit2e705f0a40eb6f4186f3ffea3f82fd7859ddec24 (patch)
tree16804e707761204a2bc83707d46efdee50dedcfd
parent7fb1f78ed0a87c41551e96012f679f1c50189683 (diff)
downloadceph-2e705f0a40eb6f4186f3ffea3f82fd7859ddec24.tar.gz
wip
-rw-r--r--src/osd/PGLog.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h
index 792191bea2a..b5dc733c150 100644
--- a/src/osd/PGLog.h
+++ b/src/osd/PGLog.h
@@ -22,6 +22,7 @@
#include "osd_types.h"
#include "os/ObjectStore.h"
#include "common/ceph_context.h"
+#include "common/bloom_filter.hpp"
#include <list>
using namespace std;
@@ -163,6 +164,10 @@ protected:
eversion_t writeout_from; ///< must writout keys past writeout_from
set<eversion_t> trimmed; ///< must clear keys in trimmed
bool dirty_divergent_priors;
+
+ bloom_filter *bloom_current; ///< currently accumulating bloom filter
+ eversion_t bloom_last; ///< last version registered in bloom filter
+
CephContext *cct;
bool is_dirty() const {
@@ -238,7 +243,10 @@ public:
pg_log_debug(!(cct && !(cct->_conf->osd_debug_pg_log_writeout))),
touched_log(false), dirty_from(eversion_t::max()),
writeout_from(eversion_t::max()),
- dirty_divergent_priors(false), cct(cct) {}
+ dirty_divergent_priors(false),
+ bloom_current(NULL),
+ cct(cct)
+ {}
void reset_backfill();