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

mds: Add cmapv to ESessions default constructor initializer list #8403

Merged
merged 1 commit into from Apr 6, 2016

Conversation

dx9
Copy link
Contributor

@dx9 dx9 commented Mar 31, 2016

2 EOpen
1 EResetJournal
1 ESession
1 ESessions
/tmp/typ-0xkIaUoD0 /tmp/typ-BGoHeqaPh differ: char 31, line 2
**** ESessions test 1 dump_json check failed ****
./ceph-dencoder type ESessions select_test 1 dump_json > /tmp/typ-0xkIaUoD0
./ceph-dencoder type ESessions select_test 1 encode decode dump_json > /tmp/typ-BGoHeqaPh
diff /tmp/typ-0xkIaUoD0 /tmp/typ-BGoHeqaPh
/tmp/typ-0xkIaUoD0 /tmp/typ-tiU63rZX2 differ: char 30, line 2
**** ESessions test 1 copy dump_json check failed ****
./ceph-dencoder type ESessions select_test 1 dump_json > /tmp/typ-0xkIaUoD0
./ceph-dencoder type ESessions select_test 1 copy dump_json > /tmp/typ-BGoHeqaPh
diff /tmp/typ-0xkIaUoD0 /tmp/typ-BGoHeqaPh
/tmp/typ-0xkIaUoD0 /tmp/typ-UQHZ1V5Cl differ: char 31, line 2
**** ESessions test 1 copy_ctor dump_json check failed ****
./ceph-dencoder type ESessions select_test 1 dump_json > /tmp/typ-0xkIaUoD0
./ceph-dencoder type ESessions select_test 1 copy_ctor dump_json > /tmp/typ-BGoHeqaPh
diff /tmp/typ-0xkIaUoD0 /tmp/typ-BGoHeqaPh
/tmp/typ-0xkIaUoD0 /tmp/typ-BGoHeqaPh differ: char 11, line 1
**** ESessions test 1 binary reencode check failed ****
./ceph-dencoder type ESessions select_test 1 encode export /tmp/typ-0xkIaUoD0
./ceph-dencoder type ESessions select_test 1 encode decode encode export /tmp/typ-BGoHeqaPh
cmp /tmp/typ-0xkIaUoD0 /tmp/typ-BGoHeqaPh
1 ESlaveUpdate
1 ESubtreeMap
1 ETableClient
1 ETableServer
1 EUpdate

rkb:~/ceph/src$ cat /tmp/typ-n8fovLxy5
{
"client map version": 138185855205184,
"client map": []
}

rkb:~/ceph/src$ cat /tmp/typ-PPFrpu8uR
{
"client map version": 124927316901915,
"client map": []
}

@gregsfortytwo gregsfortytwo added bug-fix cephfs Ceph File System labels Mar 31, 2016
@dx9 dx9 force-pushed the wip-ceph-dencoder-esessions-fix branch from 8f2985f to 0842620 Compare March 31, 2016 23:32
@dx9 dx9 changed the title Add cmapv to ESessions default constructor initializer list mds: Add cmapv to ESessions default constructor initializer list Mar 31, 2016
@@ -28,7 +28,7 @@ class ESessions : public LogEvent {
map<client_t,entity_inst_t> client_map;
bool old_style_encode;

ESessions() : LogEvent(EVENT_SESSIONS), old_style_encode(false) { }
ESessions() : LogEvent(EVENT_SESSIONS), cmapv(), old_style_encode(false) { }
Copy link
Member

Choose a reason for hiding this comment

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

cmapv(0) ?

@liewegas liewegas added this to the jewel milestone Apr 4, 2016
Fixes uninitialized values in cmapv which cause ceph-dencoder tests to fail.

Signed-off-by: John Coyle <dx9err@gmail.com>
@dx9 dx9 force-pushed the wip-ceph-dencoder-esessions-fix branch from 0842620 to 1a6c686 Compare April 4, 2016 18:02
gregsfortytwo added a commit that referenced this pull request Apr 5, 2016
@liewegas liewegas merged commit b3d27f8 into ceph:master Apr 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants