Skip to content

Commit

Permalink
Merge pull request #600 from mronstro/24.10-main
Browse files Browse the repository at this point in the history
Failure during build process fix
  • Loading branch information
mronstro authored Dec 9, 2024
2 parents 422f2fb + 153311e commit f6aa4be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions storage/innobase/buf/buf0buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,28 @@ struct set_numa_interleave_t {
struct bitmask *numa_nodes = numa_get_mems_allowed();
if (set_mempolicy(MPOL_INTERLEAVE, numa_nodes->maskp, numa_nodes->size) !=
0) {
/*
ib::warn(ER_IB_MSG_48) << "Failed to set NUMA memory"
" policy to MPOL_INTERLEAVE: "
<< strerror(errno);
*/
}
numa_bitmask_free(numa_nodes);
}
}

~set_numa_interleave_t() {
if (srv_numa_interleave) {
/*
ib::info(ER_IB_MSG_49) << "Setting NUMA memory policy to"
" MPOL_DEFAULT";
*/
if (set_mempolicy(MPOL_DEFAULT, nullptr, 0) != 0) {
/*
ib::warn(ER_IB_MSG_50) << "Failed to set NUMA memory"
" policy to MPOL_DEFAULT: "
<< strerror(errno);
*/
}
}
}
Expand Down

0 comments on commit f6aa4be

Please sign in to comment.