diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 18:52:27 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-03-01 18:52:27 +0100 |
commit | 1de23b5d9d1083dfc3b08718e01be14db44a5258 (patch) | |
tree | 61c75cdea46d334df9341cbb8501136713ba6332 | |
parent | 7ee047c64ecb1d80768e554f542e97184b28ecdb (diff) | |
download | ceph-1de23b5d9d1083dfc3b08718e01be14db44a5258.tar.gz |
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 <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/osd/Watch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/Watch.cc b/src/osd/Watch.cc index 1ee5f35b5e3..07650ac470c 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(); |