]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: s/num_workers/workers.size()/
authorKefu Chai <kchai@redhat.com>
Wed, 24 Feb 2021 04:56:18 +0000 (12:56 +0800)
committeryite.gu <yitegu0@gmail.com>
Sun, 4 Feb 2024 03:24:15 +0000 (11:24 +0800)
prepare for dropping num_workers, the latter can be dropped in a later
commit.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 52044dcbc7c00758491f095f98c35e886cf379ae)

src/msg/async/Stack.h

index 855527bfdb8d7bbb25d35c0f92e238594ccb8db1..eee4a3f9447ad68f155d2e46df720d8d212ceaac 100644 (file)
@@ -334,7 +334,7 @@ class NetworkStack {
   }
   void drain();
   unsigned get_num_worker() const {
-    return num_workers;
+    return workers.size();
   }
 
   // direct is used in tests only