]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/options: change osd_target_transaction_size from int to uint 64500/head
authorKefu Chai <tchaikov@gmail.com>
Tue, 15 Jul 2025 06:40:09 +0000 (14:40 +0800)
committerKefu Chai <k.chai@proxmox.com>
Sat, 21 Feb 2026 11:05:29 +0000 (19:05 +0800)
commit58e49b9f5d29f99c2467b9672087f6dc77db3764
treebb90e5d6aff3664227ff4ac72d575033a23b3b31
parent98f3454f0c1eeadecaffa237e575132675f9afff
common/options: change osd_target_transaction_size from int to uint

Change osd_target_transaction_size from signed int to unsigned int to
match the return type of Transaction::get_num_opts() (ceph_le64).

This change:
- Eliminates compiler warnings when comparing signed/unsigned values
- Enables automatic size conversion (e.g., "4_K" → 4096) via y2c.py
  for improved administrator usability
- Maintains type consistency throughout the codebase

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/options/global.yaml.in
src/osd/OSD.cc