Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some smaller issues #141

Merged
merged 7 commits into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ Ceph contains git submodules that need to be checked out with

The build requires that you have the following software/packages installed:

jansson version >= 2.9
librados2-devel (rados header) version >= 10.2.5

libjansson-devel version >= 2.9
librados2-devel (rados header) version >= 10.2.5
dovecot-devel (dovecot header)

If you are using CentOS make sure you also have the following package installed:

yum install redhat-rpm-config


### Standard installation in /usr/local

Expand Down
4 changes: 1 addition & 3 deletions src/librmb/rados-cluster-impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ int RadosClusterImpl::init(const std::string &clustername, const std::string &ra
int RadosClusterImpl::initialize() {
int ret = 0;

if (ret == 0) {
ret = RadosClusterImpl::cluster->conf_parse_env(nullptr);
}
ret = RadosClusterImpl::cluster->conf_parse_env(nullptr);

if (ret == 0) {
ret = RadosClusterImpl::cluster->conf_read_file(nullptr);
Expand Down
2 changes: 1 addition & 1 deletion src/librmb/rados-namespace-manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RadosNamespaceManager {
void set_config(RadosDovecotCephCfg *config_) { config = config_; }
RadosDovecotCephCfg *get_config() { return config; }

void set_namespace_oid(std::string &namespace_oid_) { this->oid_suffix = oid_suffix; }
void set_namespace_oid(std::string &namespace_oid_) { this->oid_suffix = namespace_oid_; }
bool lookup_key(const std::string &uid, std::string *value);
bool add_namespace_entry(const std::string &uid, std::string *value, RadosGuidGenerator *guid_generator_);

Expand Down
2 changes: 1 addition & 1 deletion src/librmb/tools/rmb/rmb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ int main(int argc, const char **argv) {
usage_exit();
}

if (args.size() <= 0 && opts.size() <= 0 && !is_config_option) {
if (args.empty() && opts.empty() && !is_config_option) {
usage_exit();
}

Expand Down
2 changes: 0 additions & 2 deletions src/storage-rbox/rbox-mailbox-list-fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ static int rbox_list_is_maildir_mailbox(struct mailbox_list *list, const char *d
*flags_r |= MAILBOX_CHILDREN;
}
*flags_r |= MAILBOX_SELECT;
return 1;
FUNC_END();
return 1;
}
Expand Down Expand Up @@ -251,7 +250,6 @@ int rbox_fs_list_get_mailbox_flags(struct mailbox_list *list, const char *dir, c
else if (st.st_nlink > 2)
*flags_r |= MAILBOX_CHILDREN;
}
return 1;
FUNC_END();
return 1;
}
2 changes: 1 addition & 1 deletion src/storage-rbox/rbox-storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ int read_plugin_configuration(struct mailbox *box) {

if (!storage->config->is_config_valid()) {
std::map<std::string, std::string> *map = storage->config->get_config();
for (std::map<std::string, std::string>::iterator it = map->begin(); it != map->end(); it++) {
for (std::map<std::string, std::string>::iterator it = map->begin(); it != map->end(); ++it) {
std::string setting = it->first;
storage->config->update_metadata(setting, mail_user_plugin_getenv(mbox->storage->storage.user, setting.c_str()));
}
Expand Down