summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2019-10-28 21:29:50 +0200
committerSanju Rakonde <srakonde19@gmail.com>2019-12-19 09:12:36 +0000
commitbc6e206c6d29234a0b167b142d20c62ffd529f15 (patch)
tree0e850482d9d3e4898f2300c01eec45b9ad18cda0 /glusterfs.spec.in
parent8c6a19783e149dda1ab9143f48badfa617478e6e (diff)
cli-rpc-ops.c: cleanups
1. Move functions and structs to static 2. Use dictionary functions with fixed key length. 3. Reduce key length when not needed. 4. Use const char* for some messages. 5. Use fixed strings for some logs which is repeated in the code. 6. Remove redundant checks. Specifically, cli_to_glusterd() does NULL checks already, so no need to do it before calling it. 7. Aligned some messages - not sure why they were cut over several lines, but it made grep on the code harder. 8. Move dictionary fetching of values closer to where they are actually used. Overall, object size is ~4 smaller, hopefully without functional changes. There's more that can be done, but as this is a very long (>10K lines) file, I think it's enough for one change. Specifically, some functions fetch values from the dictionary without using it - this is a bit of a waste. Filed https://github.com/gluster/glusterfs/issues/753 about it. Change-Id: I31f88d94ab25398e00aef2ea84a8c4af9383b75b updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
0 files changed, 0 insertions, 0 deletions