Skip to content

Commit

Permalink
Merge pull request #221 from ceph-dovecot/jrse_#220
Browse files Browse the repository at this point in the history
#220: added #ifdef around the warning message. If a metadata is not s…
  • Loading branch information
jrse authored Dec 4, 2018
2 parents 384921c + 1dd6033 commit b6e279c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/storage-rbox/rbox-mail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,13 @@ static int rbox_mail_metadata_get(struct rbox_mail *rmail, enum rbox_metadata_ke
rmail->rados_mail->get_metadata(key, &value);
if (!value.empty()) {
*value_r = i_strdup(value.c_str());
} else {
}
#ifdef DEBUG
else {
// this may not be a problem, because we only save metadata as omap value if it really has a value
i_warning("no value for metadata '%c' found ", static_cast<char>(key));
}
#endif
FUNC_END();
return 0;
}
Expand Down

0 comments on commit b6e279c

Please sign in to comment.