From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 17:52:27 +0000 (+0100) Subject: osd/Watch.cc: init NotifyTimeoutCB::canceled in constructor with false X-Git-Tag: v0.59~54^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F87%2Fhead;p=ceph.git osd/Watch.cc: init NotifyTimeoutCB::canceled in constructor with false Initialize NotifyTimeoutCB::canceled in the constructor with false as already done in onter cases. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/osd/Watch.cc b/src/osd/Watch.cc index 1ee5f35b5e34..07650ac470c4 100644 --- a/src/osd/Watch.cc +++ b/src/osd/Watch.cc @@ -71,7 +71,7 @@ class NotifyTimeoutCB : public CancelableContext { NotifyRef notif; bool canceled; // protected by notif lock public: - NotifyTimeoutCB(NotifyRef notif) : notif(notif) {} + NotifyTimeoutCB(NotifyRef notif) : notif(notif), canceled(false) {} void finish(int) { notif->osd->watch_lock.Unlock(); notif->lock.Lock();