From 05f58b28b20a7d46535d08d4f88c1aaea785fc73 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 25 Jul 2013 21:12:33 -0600 Subject: [PATCH] Fix mgr:info report 'Largest file desc currently in use' with SMP The biggest FD in use should not be the sum of biggest FD in each worker, but the maximum across all workers. --- src/mgr/InfoAction.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mgr/InfoAction.cc b/src/mgr/InfoAction.cc index 09fb699df0..dc9e6c1df1 100644 --- a/src/mgr/InfoAction.cc +++ b/src/mgr/InfoAction.cc @@ -115,7 +115,7 @@ Mgr::InfoActionData::operator += (const InfoActionData& stats) gb_saved_count += stats.gb_saved_count; gb_freed_count += stats.gb_freed_count; max_fd += stats.max_fd; - biggest_fd += stats.biggest_fd; + biggest_fd = max(biggest_fd, stats.biggest_fd); number_fd += stats.number_fd; opening_fd += stats.opening_fd; num_fd_free += stats.num_fd_free; -- 2.47.2