]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
workqueue: reset heartbeat timeout under lock
authorSage Weil <sage@inktank.com>
Fri, 28 Sep 2012 00:55:28 +0000 (17:55 -0700)
committerSage Weil <sage@inktank.com>
Fri, 28 Sep 2012 20:18:03 +0000 (13:18 -0700)
commit73d854975eaef8661b74d7cad247bbebd469a1ac
treeded20beab94facdec10740d6a443f0fa0c7ead33
parentbdadc4eca61a72bc6fdeaceb5c0217401ed1a305
workqueue: reset heartbeat timeout under lock

This makes coverity happier:

CID 727967: Value not atomically updated (ATOMICITY)
At (44): Using an unreliable value of "hb" inside the second locked section. If the data that "hb" depends on was changed by another thread, this use might be incorrect.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/WorkQueue.cc