CID 716882: Copy-paste error (COPY_PASTE_ERROR)At (2): "last_epoch_started" in
"other.last_epoch_started" looks like a copy-paste error. Should it say
"last_epoch_split" instead?
From what I can tell, this really should be checking other.last_epoch_split
rather than other.last_epoch_started.
Signed-off-by: Samuel Just <sam.just@inktank.com>
o.push_back(new pg_notify_t(3,10,pg_info_t()));
}
-ostream &operator<<(ostream &lhs, const pg_notify_t notify)
+ostream &operator<<(ostream &lhs, const pg_notify_t ¬ify)
{
return lhs << "(query_epoch:" << notify.query_epoch
<< ", epoch_sent:" << notify.epoch_sent
last_epoch_clean = other.last_epoch_clean;
modified = true;
}
- if (last_epoch_split < other.last_epoch_started) {
- last_epoch_split = other.last_epoch_started;
+ if (last_epoch_split < other.last_epoch_split) {
+ last_epoch_split = other.last_epoch_split;
modified = true;
}
if (other.last_scrub > last_scrub) {
static void generate_test_instances(list<pg_notify_t*> &o);
};
WRITE_CLASS_ENCODER(pg_notify_t)
-ostream &operator<<(ostream &lhs, const pg_notify_t notify);
+ostream &operator<<(ostream &lhs, const pg_notify_t ¬ify);
/**