Skip to content

Fix coverity issues version, write_batch - #3092

Closed
pdvian wants to merge 1 commit into
meta:masterfrom
pdvian:wip-fix-coverity-issues-1351713
Closed

pdvian wants to merge 1 commit into
meta:masterfrom
pdvian:wip-fix-coverity-issues-1351713

Conversation

@pdvian

@pdvian pdvian commented Oct 30, 2017

Copy link
Copy Markdown

Summary:
db/version_builder.cc:
117 base_vstorage_->InternalComparator();

CID 1351713 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member field level_zero_cmp_.internal_comparator is not initialized in this constructor nor in any functions that it calls.

db/version_edit.h:
145 FdWithKeyRange()
146 : fd(),
147 smallest_key(),
148 largest_key() {

CID 1418254 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member file_metadata is not initialized in this constructor nor in any functions that it calls.
149 }

db/version_set.cc:
120 }

CID 1322789 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
4. uninit_member: Non-static class member curr_file_level_ is not initialized in this constructor nor in any functions that it calls.
121 }

db/write_batch.cc:
939 assert(cf_mems_);

CID 1419862 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
3. uninit_member: Non-static class member rebuilding_trx_seq_ is not initialized in this constructor nor in any functions that it calls.
940 }

Summary:
db/version_builder.cc:
117        base_vstorage_->InternalComparator();

CID 1351713 (meta#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member field level_zero_cmp_.internal_comparator is not initialized in this constructor nor in any functions that it calls.

db/version_edit.h:
145  FdWithKeyRange()
146      : fd(),
147        smallest_key(),
148        largest_key() {

CID 1418254 (meta#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member file_metadata is not initialized in this constructor nor in any functions that it calls.
149  }

db/version_set.cc:
120    }

CID 1322789 (meta#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
4. uninit_member: Non-static class member curr_file_level_ is not initialized in this constructor nor in any functions that it calls.
121  }

db/write_batch.cc:
 939    assert(cf_mems_);

CID 1419862 (meta#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
3. uninit_member: Non-static class member rebuilding_trx_seq_ is not initialized in this constructor nor in any functions that it calls.
 940  }
@pdvian

pdvian commented Oct 31, 2017

Copy link
Copy Markdown
Author

Checks failed for BlobDBTest and nothing to do with coverity fixes :
[ RUN ] BlobDBTest.GCRelocateKeyWhileOverwriting
utilities/blob_db/blob_db_test.cc:659: Failure
Value of: gc_stats.relocate_succeeded
Actual: 1
Expected: 0
terminate called without an active exception
/bin/bash: line 1: 16932 Aborted (core dumped) ./$t
make: *** [check_some] Error 1

@facebook-github-bot retest pls

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@yiwu-arbug has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@yiwu-arbug

Copy link
Copy Markdown
Contributor

Merging

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@yiwu-arbug is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants