From: Colin Patrick McCabe Date: Wed, 16 Feb 2011 15:15:38 +0000 (-0800) Subject: msgr: complain if there are > 1 threads, not 1 X-Git-Tag: v0.25~113 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=03e56b773b3837da9945da4e6e44415f54893cff;p=ceph.git msgr: complain if there are > 1 threads, not 1 Signed-off-by: Colin McCabe --- diff --git a/src/msg/SimpleMessenger.cc b/src/msg/SimpleMessenger.cc index d93e5ccddf3b..6c9e0b333db4 100644 --- a/src/msg/SimpleMessenger.cc +++ b/src/msg/SimpleMessenger.cc @@ -2428,7 +2428,7 @@ int SimpleMessenger::start(bool nodaemon) // daemonize? if (g_conf.daemonize && !nodaemon) { int num_threads = Thread::get_num_threads(); - if (num_threads > 0) { + if (num_threads > 1) { derr << "messenger.start BUG: there are " << num_threads << " threads" << " already started that will now die! call messenger.start() sooner." << dendl;