]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: cast m->get_client_tid() to compare to 16-bit Inode::flushing_cap_tid 2842/head
authorGreg Farnum <greg@inktank.com>
Thu, 23 Oct 2014 00:16:31 +0000 (17:16 -0700)
committerGreg Farnum <greg@inktank.com>
Thu, 23 Oct 2014 00:30:02 +0000 (17:30 -0700)
commitfabd4b5795ce9ec6b6fb960f97f496d642c989da
treeff4fc486b3bf8cde6a504bade8ed93e14132bc63
parentbc8b67bef6309a32361be76cd11fb56b057ea9d2
client: cast m->get_client_tid() to compare to 16-bit Inode::flushing_cap_tid

m->get_client_tid() is 64 bits (as it should be), but Inode::flushing_cap_tid
is only 16 bits. 16 bits should be plenty to let the cap flush updates
pipeline appropriately, but we need to cast in the proper direction when
comparing these differently-sized versions. So downcast the 64-bit one
to 16 bits.

Fixes: #9869
Signed-off-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 7cda0e52924787f4be6f80cf7c3edcef1c995728)
src/client/Client.cc