diff --git a/src/storage-rbox/rbox-save.cpp b/src/storage-rbox/rbox-save.cpp index 5ddfd5e4..cd4279e5 100644 --- a/src/storage-rbox/rbox-save.cpp +++ b/src/storage-rbox/rbox-save.cpp @@ -532,8 +532,7 @@ int save_mail_async(RadosStorage *rados_storage, ret_val = failed ? -1 : 0; i_debug("completion return value %d",ret_val); } - completion->release(); - + // deprecated unused current_object->set_write_operation(nullptr); current_object->set_completion(nullptr); diff --git a/src/storage-rbox/rbox-storage.cpp b/src/storage-rbox/rbox-storage.cpp index 09b0e0e4..83685b5c 100644 --- a/src/storage-rbox/rbox-storage.cpp +++ b/src/storage-rbox/rbox-storage.cpp @@ -468,7 +468,8 @@ int rbox_open_rados_connection(struct mailbox *box, bool alt_storage) { ? librmb::WAIT_FOR_SAFE_AND_CB : librmb::WAIT_FOR_COMPLETE_AND_CB); } - } catch (std::exception &e) { + } catch (std::exception &e) { + i_error("Exception: setting up ceph connection: %s",e.what()); ret = -1; } @@ -480,6 +481,7 @@ int rbox_open_rados_connection(struct mailbox *box, bool alt_storage) { #endif return 0; } + if (ret < 0) { i_error( "Open rados connection. Error(%d,%s) (pool_name(%s), cluster_name(%s), rados_user_name(%s), "