Push error handling logic out of core dumping logic

This commit is contained in:
Yinan Zhang
2020-03-31 10:00:37 -07:00
parent f541871f5d
commit 5d292b5660
6 changed files with 346 additions and 224 deletions

View File

@@ -83,13 +83,10 @@ TEST_END
bool prof_dump_header_intercepted = false;
prof_cnt_t cnt_all_copy = {0, 0, 0, 0};
static bool
prof_dump_header_intercept(tsdn_t *tsdn, bool propagate_err,
const prof_cnt_t *cnt_all) {
static void
prof_dump_header_intercept(tsdn_t *tsdn, const prof_cnt_t *cnt_all) {
prof_dump_header_intercepted = true;
memcpy(&cnt_all_copy, cnt_all, sizeof(prof_cnt_t));
return false;
}
TEST_BEGIN(test_prof_reset_cleanup) {