Skip to content

Commit

Permalink
Failure during build process fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelronstrom committed Dec 9, 2024
1 parent 4ac8ae9 commit 153311e
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 153311e

Please sign in to comment.