This was always WATCH_NOTIFY; just pass that explicitly. No need to
pay attention to what's in the message.
Signed-off-by: Sage Weil <sage@redhat.com>
assert(!!wc->watch_ctx ^ !!wc->watch_ctx2); // only one is defined
lock.Unlock();
if (wc->watch_ctx) {
- wc->watch_ctx->notify(m->opcode, m->ver, m->bl);
+ wc->watch_ctx->notify(WATCH_NOTIFY, m->ver, m->bl);
// send ACK back to the OSD
bufferlist empty;
wc->io_ctx_impl->notify_ack(wc->oid, m->notify_id, m->cookie, empty);