]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth: remove unused AuthTicket::renew_after member variable 64591/head
authorKefu Chai <tchaikov@gmail.com>
Sun, 20 Jul 2025 23:09:11 +0000 (07:09 +0800)
committerKefu Chai <tchaikov@gmail.com>
Mon, 21 Jul 2025 08:57:34 +0000 (16:57 +0800)
commit928aa98c1dcac36aabb29913fc78479bcfd6d2c2
tree493cc0db51e24546ed5392db89487c3816c833da
parentbffa446a89ddae36eb4419057b0eef1c04dbcc59
auth: remove unused AuthTicket::renew_after member variable

The AuthTicket::renew_after field is only set in init_timestamps() and
read by dump() for debugging purposes. It has no functional use cases
and causes encoding/decoding inconsistencies.

During decoding, this field remains unchanged, creating discrepancies
between original and decoded values. This issue was masked because
check-generated.sh and readable.sh reused struct instances, preserving
stale field values across encode/decode cycles.

An upcoming change will allocate fresh instances for each decode
operation, which would expose these inconsistent values.

Remove the unused field to eliminate the encoding inconsistency and
simplify the codebase.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
doc/dev/cephx.rst
src/auth/Auth.h