]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: dout_create_rank_symlink: init if needed
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 6 Jan 2011 02:15:12 +0000 (18:15 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 6 Jan 2011 02:16:59 +0000 (18:16 -0800)
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/common/debug.cc

index 8604bf86205564da10e6ae785b1f07261d452ade..95b1030d665c87c201765c8da2f59222b1d0daf6 100644 (file)
@@ -52,6 +52,11 @@ int dout_handle_daemonize()
 int dout_create_rank_symlink(int n)
 {
   Mutex::Locker l(_dout_lock);
+
+  if (_dout_need_open)
+    _dout_open_log(true);
+
+  assert(_doss);
   return _doss->create_rank_symlink(n);
 }