]> 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 2786/head
authorGreg Farnum <greg@inktank.com>
Thu, 23 Oct 2014 00:16:31 +0000 (17:16 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 27 Oct 2014 23:19:13 +0000 (16:19 -0700)
commita5184cf46a6e867287e24aeb731634828467cd98
tree036bb7338729ad4649eb76a6b84b1395f28bde08
parentfa07c04231db2d130de54647957ffab4a7a53733
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
Backport: giant, firefly, dumpling

Signed-off-by: Greg Farnum <greg@inktank.com>
src/client/Client.cc