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>
with_legacy: true
# to adjust various transactions that batch smaller items
- name: osd_target_transaction_size
- type: int
+ type: uint
level: advanced
default: 30
with_legacy: true
}
if (!temps.empty()) {
ObjectStore::Transaction t;
- int removed = 0;
+ unsigned removed = 0;
for (vector<ghobject_t>::iterator q = temps.begin(); q != temps.end(); ++q) {
dout(20) << " removing " << *p << " object " << *q << dendl;
t.remove(*p, *q);