summaryrefslogtreecommitdiffstats
path: root/src/librados
diff options
context:
space:
mode:
authorDan Mick <dan.mick@redhat.com>2017-04-25 08:39:52 +0200
committerDan Mick <dan.mick@redhat.com>2017-04-25 08:39:52 +0200
commit4bdc18a73971f1a474de9a818436b47b9509d287 (patch)
treed1fed76e81359b1231fc562b54a5cdfe29f66a33 /src/librados
parenttest/cli/ceph-conf/env-vs-args.t: accept new error messages (diff)
downloadceph-4bdc18a73971f1a474de9a818436b47b9509d287.tar.xz
ceph-4bdc18a73971f1a474de9a818436b47b9509d287.zip
squashme: review comments
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Diffstat (limited to 'src/librados')
-rw-r--r--src/librados/librados.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librados/librados.cc b/src/librados/librados.cc
index 44a632f0295..3c063260bf1 100644
--- a/src/librados/librados.cc
+++ b/src/librados/librados.cc
@@ -2823,7 +2823,7 @@ extern "C" int rados_conf_read_file(rados_t cluster, const char *path_list)
ostringstream warnings;
int ret = conf->parse_config_files(path_list, &warnings, 0);
if (ret) {
- if (warnings.str().length())
+ if (warnings.tellp() > 0)
lderr(client->cct) << warnings.str() << dendl;
client->cct->_conf->complain_about_parse_errors(client->cct);
tracepoint(librados, rados_conf_read_file_exit, ret);