RGWMetaSyncCR was using operator== but it always returned true!
Signed-off-by: Casey Bodley <cbodley@redhat.com>
return epoch < history->get_newest_epoch();
}
+bool operator==(const Cursor& lhs, const Cursor& rhs)
+{
+ return lhs.history == rhs.history && lhs.epoch == rhs.epoch;
+}
+
+bool operator!=(const Cursor& lhs, const Cursor& rhs)
+{
+ return !(lhs == rhs);
+}
class RGWPeriodHistory::Impl final {
public:
void prev() { epoch--; }
void next() { epoch++; }
+ friend bool operator==(const Cursor& lhs, const Cursor& rhs);
+ friend bool operator!=(const Cursor& lhs, const Cursor& rhs);
+
private:
// private constructors for RGWPeriodHistory
friend class RGWPeriodHistory::Impl;