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

osd: bluestore: fix bluestore_wal_transaction_t encoding test #7168

Merged
merged 1 commit into from Jan 11, 2016

Conversation

tchaikov
Copy link
Contributor

bluestore_wal_transaction_t::seq is encoded/dumped but it is not
initialized in its ctor. so set it to 0 in its ctor.

Signed-off-by: Kefu Chai kchai@redhat.com

@tchaikov
Copy link
Contributor Author

@liewegas could you take a look at this pull request? it fixes another unit test failure.

bluestore_wal_transaction_t::seq is encoded/dumped but it is not
initialized in its ctor. so set it to 0 in its ctor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

ran ./src/test/encoding/check-generated.sh manually, and it passed.

@@ -279,7 +279,7 @@ WRITE_CLASS_ENCODER(bluestore_wal_op_t)

/// writeahead-logged transaction
struct bluestore_wal_transaction_t {
uint64_t seq;
uint64_t seq = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a c++11-ism that lets you initialize things this way?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

liewegas added a commit that referenced this pull request Jan 11, 2016
osd: bluestore: fix bluestore_wal_transaction_t encoding test

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 1899e7e into ceph:master Jan 11, 2016
@tchaikov tchaikov deleted the wip-fix-bluestore-test branch January 11, 2016 13:53
@ghost ghost changed the title os/bluestore: fix bluestore_wal_transaction_t encoding test osd: bluestore: fix bluestore_wal_transaction_t encoding test Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants