We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
void ColumnFamilyData::CreateNewMemtable( const MutableCFOptions& mutable_cf_options, SequenceNumber earliest_seq) { if (mem_ != nullptr) { delete mem_->Unref(); } SetMemtable(ConstructNewMemtable(mutable_cf_options, earliest_seq)); mem_->Ref(); }
gives:
➜ rocksdb-main git:(main) ✗ cppsafe -p build db/column_family.cc /Users/wuqq/dev/rocksdb-main/db/column_family.cc:1137:3: warning: passing a dangling pointer as argument 1137 | mem_->Ref(); | ^~~~ /Users/wuqq/dev/rocksdb-main/db/column_family.cc:1134:5: note: deleted here 1134 | delete mem_->Unref(); | ^~~~~~~~~~~~~~~~~~~~ 1 warning generated.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
gives:
The text was updated successfully, but these errors were encountered: