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

Bugfix/UUID record format #293

Merged
merged 2 commits into from
Mar 2, 2022
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## [0.0.27](https://github.com/ceph-dovecot/dovecot-ceph-plugin/tree/0.0.25) (2022-02-28)

- bugfix initialisation rados_mail->deprecated_uid

## [0.0.26](https://github.com/ceph-dovecot/dovecot-ceph-plugin/tree/0.0.25) (2022-02-28)

- support deprecated uuid format RECORD and MICROSOFT
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

AC_PREREQ([2.59])

AC_INIT([dovecot-ceph-plugin], [0.0.26], [https://github.com/ceph-dovecot/dovecot-ceph-plugin/issues/new], ,[https://github.com/ceph-dovecot/dovecot-ceph-plugin])
AC_INIT([dovecot-ceph-plugin], [0.0.27], [https://github.com/ceph-dovecot/dovecot-ceph-plugin/issues/new], ,[https://github.com/ceph-dovecot/dovecot-ceph-plugin])

AC_CONFIG_AUX_DIR([.])
AC_CONFIG_SRCDIR([src])
Expand Down
2 changes: 1 addition & 1 deletion rpm/dovecot-ceph-plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

Name: dovecot-ceph-plugin
Summary: Dovecot Ceph RADOS plugins
Version: 0.0.26
Version: 0.0.27

Release: 0%{?dist}
URL: https://github.com/ceph-dovecot/dovecot-ceph-plugin
Expand Down
3 changes: 2 additions & 1 deletion src/librmb/rados-mail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ RadosMail::RadosMail()
mail_buffer(nullptr),
save_date_rados(-1),
valid(true),
index_ref(false) {}
index_ref(false),
deprecated_uid(false) {}

RadosMail::~RadosMail() {}

Expand Down
12 changes: 12 additions & 0 deletions src/tests/storage-mock-rbox/test_storage_mock_rbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ using ::testing::ReturnRef;
#endif

TEST_F(StorageTest, init) {}

/**
* make sure is deprecated uid is always false initialy
**/
TEST_F(StorageTest, create_rados_mail) {

for(int i = 0 ; i < 10000 ;i++) {
librmb::RadosMail *mail = new librmb::RadosMail();
ASSERT_EQ(false, mail->is_deprecated_uid());
delete mail;
}
}
/**
* Error test:
* - open_connection to rados will fail with -1 .
Expand Down