]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Avoid sign-extension of non-magic Message* values
authorDan Mick <dan.mick@inktank.com>
Tue, 2 Oct 2012 22:37:42 +0000 (15:37 -0700)
committerDan Mick <dan.mick@inktank.com>
Tue, 2 Oct 2012 23:04:35 +0000 (16:04 -0700)
commit67a201d64b5b4f1a8effd677dd932680144265d6
tree024451f7478598526c0bfa9e47da3d89ee7d003e
parent035cf965016586c96ed07459da2af28a3731db28
Avoid sign-extension of non-magic Message* values

Cast to (unsigned long) when checking for magic values, so
real ptrs don't get sign-extended.  Avoids triggering
assert(inq == &local_queue) failure.

Fixes: #3251
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage.weil@inktank.com>
src/msg/DispatchQueue.cc