From 98505b04b9fc66bc4f724bf9524a3d8e21fc7294 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 26 Jul 2013 06:38:40 -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 034a07dbc5..ad20c0c816 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