]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: complain if there are > 1 threads, not 1
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 16 Feb 2011 15:15:38 +0000 (07:15 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 16 Feb 2011 15:16:27 +0000 (07:16 -0800)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/msg/SimpleMessenger.cc

index d93e5ccddf3b81c34232fbfb7175bd88bebe8c16..6c9e0b333db4b49f24c7edfcca0508f2d8bb3094 100644 (file)
@@ -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;