From 3f8d118e48f11f448f35aca0c48ad40e0fd34f5b Mon Sep 17 00:00:00 2001 From: Xavier Hernandez Date: Tue, 7 Nov 2017 13:45:03 +0100 Subject: libglusterfs/atomic: Improved atomic support This patch solves a detection problem in configure.ac that prevented that compilation detects builtin __atomic or __sync functions. It also adds more atomic types and support for other atomic functions. An special case has been added to support 64-bit atomics on 32-bit systems. The solution is to fallback to the mutex solution only for 64-bit atomics, but smaller atomic types will still take advantage of builtins if available. Change-Id: I6b9afc7cd6e66b28a33278715583552872278801 BUG: 1510397 Signed-off-by: Xavier Hernandez --- xlators/debug/io-stats/src/io-stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/debug/io-stats') diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index 892746c959a..5656e32a4f5 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -1578,8 +1578,8 @@ io_stats_dump (xlator_t *this, struct ios_dump_args *args, gf1_cli_info_op op, gf_boolean_t is_peek) { struct ios_conf *conf = NULL; - struct ios_global_stats cumulative = {{0,}, }; - struct ios_global_stats incremental = {{0,}, }; + struct ios_global_stats cumulative = { }; + struct ios_global_stats incremental = { }; int increment = 0; struct timeval now; -- cgit