Skip to content

Commit 57a8c53

Browse files
committed
common/config: export CEPH_CONF_FILE_DEFAULT
It used to be exported until commit 318c62f ("common/config: cleanup remove some unused macros"). Having CEPH_CONF_FILE_DEFAULT avaialable is handy to prevent parse_config_files() from picking up CEPH_CONF environment variable. Signed-off-by: Ilya Dryomov <[email protected]>
1 parent df2189a commit 57a8c53

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/common/config.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ using ceph::decode;
5555
using ceph::encode;
5656
using ceph::Formatter;
5757

58-
static const char *CEPH_CONF_FILE_DEFAULT = "$data_dir/config,/etc/ceph/$cluster.conf,$home/.ceph/$cluster.conf,$cluster.conf"
58+
const char *CEPH_CONF_FILE_DEFAULT = "$data_dir/config,/etc/ceph/$cluster.conf,$home/.ceph/$cluster.conf,$cluster.conf"
5959
#if defined(__FreeBSD__)
6060
",/usr/local/etc/ceph/$cluster.conf"
6161
#elif defined(_WIN32)

src/common/config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ enum {
3939

4040
extern const char *ceph_conf_level_name(int level);
4141

42+
extern const char *CEPH_CONF_FILE_DEFAULT;
43+
4244
/** This class represents the current Ceph configuration.
4345
*
4446
* For Ceph daemons, this is the daemon configuration. Log levels, caching

0 commit comments

Comments
 (0)