]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg: update MOSDOp() to use ceph_tid_t instead of long 55413/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 1 Feb 2024 14:40:03 +0000 (14:40 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 1 Feb 2024 15:01:36 +0000 (15:01 +0000)
commit0bab1e6b690ec4a12e8dc27229c435d64ca0d0be
treebea2f787c58bb89f0b695e79fad9b17cafeabe15
parentd0ff37be708d162a1b411c73e0038c790816ee28
msg: update MOSDOp() to use ceph_tid_t instead of long

The MOSDOp constructor receives the the transaction ID as a long
instead of ceph_tid_t.

The issue is that "long" uses 32b on Windows instead of 64 bits,
so it flips after about 2 billion requests. At that point, the OSD
replies are dropped because of transaction ID mismatches.

We'll solve the issue by using the correct type for the transaction
id, specifically ceph_tid_t.

Fixes: https://tracker.ceph.com/issues/64291
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/messages/MOSDOp.h