From: Sage Weil Date: Fri, 26 Jun 2009 22:08:31 +0000 (-0700) Subject: monc: debug option X-Git-Tag: v0.10~113 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=59d08cbc45d4d1109f57400340928af11a8aae3d;p=ceph.git monc: debug option --- diff --git a/src/config.cc b/src/config.cc index 7944164c3521..7f0485dfa2af 100644 --- a/src/config.cc +++ b/src/config.cc @@ -335,6 +335,7 @@ static struct config_option config_optionsp[] = { OPTION(debug_ns, 0, OPT_INT, 0), OPTION(debug_ms, 0, OPT_INT, 0), OPTION(debug_mon, 0, OPT_INT, 1), + OPTION(debug_monc, 0, OPT_INT, 1), OPTION(debug_paxos, 0, OPT_INT, 0), OPTION(debug_tp, 0, OPT_INT, 0), OPTION(clock_lock, 0, OPT_BOOL, false), diff --git a/src/config.h b/src/config.h index cc3a46b06c15..21fef8b4e0fa 100644 --- a/src/config.h +++ b/src/config.h @@ -97,6 +97,7 @@ struct md_config_t { int debug_ns; int debug_ms; int debug_mon; + int debug_monc; int debug_paxos; int debug_tp; diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index a6b1c6f4015c..0eb02ae3df69 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -1,3 +1,17 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab +/* + * Ceph - scalable distributed file system + * + * Copyright (C) 2004-2006 Sage Weil + * + * This is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + * + */ + #include "msg/SimpleMessenger.h" #include "messages/MMonGetMap.h" #include "messages/MMonMap.h" @@ -15,6 +29,7 @@ #include "config.h" +#define DOUT_SUBSYS monc #undef dout_prefix #define dout_prefix *_dout << dbeginl << "monclient: "