Skip to content

Commit

Permalink
Add GetMapProperty to db_stress (facebook#8551)
Browse files Browse the repository at this point in the history
Summary:
Already has good coverage for GetProperty and GetIntProperty
but this one was missing.

This should add more confidence to facebook#8538

Pull Request resolved: facebook#8551

Test Plan:
brief local run with boosted probability showed no immediate
issues

Reviewed By: siying

Differential Revision: D29746383

Pulled By: pdillinger

fbshipit-source-id: 9f9f525bc1a7607f85e563e33bda1979ef197127
  • Loading branch information
pdillinger authored and facebook-github-bot committed Jul 19, 2021
1 parent 9e88593 commit d5f3b77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions db_stress_tool/db_stress_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,14 @@ void StressTest::TestGetProperty(ThreadState* thread) const {
thread->shared->SetVerificationFailure();
}
}
if (ppt_name_and_info.second.handle_map != nullptr) {
std::map<std::string, std::string> prop_map;
if (!db_->GetMapProperty(ppt_name_and_info.first, &prop_map)) {
fprintf(stderr, "Failed to get Map property: %s\n",
ppt_name_and_info.first.c_str());
thread->shared->SetVerificationFailure();
}
}
}
}

Expand Down

0 comments on commit d5f3b77

Please sign in to comment.