One such example is popping the last entry from an object. The next
object will be automatically prefetched. When that object is received,
we do not want to alert the user that entries are available since
try_pop_front already indicated more records were available.
Fixes: http://tracker.ceph.com/issues/15755
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
3b8d21ac13865791d8fc4c519f47c1f7d6096e76)
ldout(m_cct, 20) << __func__ << dendl;
Mutex::Locker locker(m_lock);
- m_handler_notified = false;
if (m_state != STATE_PLAYBACK) {
+ m_handler_notified = false;
return false;
}
if (!is_object_set_ready()) {
+ m_handler_notified = false;
return false;
}
if (!m_watch_enabled) {
notify_complete(0);
} else if (!m_watch_scheduled) {
+ m_handler_notified = false;
schedule_watch();
}
return false;
// set of data before advancing to a new tag
if (m_watch_enabled && m_watch_required) {
m_watch_required = false;
- schedule_watch();
return false;
}