template <typename I>
void ImageWatcher<I>::handle_notify(uint64_t notify_id, uint64_t handle,
- bufferlist &bl) {
+ uint64_t notifier_id, bufferlist &bl) {
NotifyMessage notify_message;
if (bl.length() == 0) {
// legacy notification for header updates
const watch_notify::Payload &payload, int r);
virtual void handle_notify(uint64_t notify_id, uint64_t handle,
- bufferlist &bl);
+ uint64_t notifier_id, bufferlist &bl);
virtual void handle_error(uint64_t cookie, int err);
virtual void handle_rewatch_complete(int r);
template <typename I>
void MirroringWatcher<I>::handle_notify(uint64_t notify_id, uint64_t handle,
- bufferlist &bl) {
+ uint64_t notifier_id, bufferlist &bl) {
CephContext *cct = this->m_cct;
ldout(cct, 15) << ": notify_id=" << notify_id << ", "
<< "handle=" << handle << dendl;
Context *on_notify_ack);
virtual void handle_notify(uint64_t notify_id, uint64_t handle,
- bufferlist &bl);
+ uint64_t notifier_id, bufferlist &bl);
};
} // namespace librbd
uint64_t handle,
uint64_t notifier_id,
bufferlist& bl) {
- watcher.handle_notify(notify_id, handle, bl);
+ watcher.handle_notify(notify_id, handle, notifier_id, bl);
}
void Watcher::WatchCtx::handle_error(uint64_t handle, int err) {
Context *on_finish = nullptr);
virtual void handle_notify(uint64_t notify_id, uint64_t handle,
- bufferlist &bl) = 0;
+ uint64_t notifier_id, bufferlist &bl) = 0;
virtual void handle_error(uint64_t cookie, int err);
}
virtual void handle_notify(uint64_t notify_id, uint64_t handle,
- bufferlist &bl) {
+ uint64_t notifier_id, bufferlist &bl) {
bufferlist out;
acknowledge_notify(notify_id, handle, out);
}