From 3a158b7ee5debe2e2905491b67f4c63bb932e99f Mon Sep 17 00:00:00 2001 From: sageweil Date: Sat, 11 Aug 2007 21:00:27 +0000 Subject: [PATCH] fixed problem with premature fakemessenger thread shutdown git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1622 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/sage/mds/msg/FakeMessenger.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/branches/sage/mds/msg/FakeMessenger.cc b/branches/sage/mds/msg/FakeMessenger.cc index 642175eaaca7a..f99c6aa7e30e4 100644 --- a/branches/sage/mds/msg/FakeMessenger.cc +++ b/branches/sage/mds/msg/FakeMessenger.cc @@ -78,7 +78,7 @@ void *fakemessenger_thread(void *ptr) if (fm_shutdown) break; fakemessenger_do_loop_2(); - if (directory.empty()) break; + if (directory.empty() && nranks > 0) break; dout(20) << "thread waiting" << endl; if (fm_shutdown) break; @@ -137,7 +137,7 @@ int fakemessenger_do_loop_2() { //lock.Lock(); dout(18) << "do_loop begin." << endl; - + while (1) { bool didone = false; -- 2.39.5