Skip to content

Commit

Permalink
alias_resolve: add missing nullptr check in reload function
Browse files Browse the repository at this point in the history
Fixes: gromox-2.14-64-g75d12be7a
References: GXL-301
  • Loading branch information
jengelh committed Oct 11, 2024
1 parent e65d81c commit 3267bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mda/alias_resolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ static void xa_refresh_thread()
auto newmap = xa_refresh_aliases(conn);
auto newdom = xa_refresh_domains(conn);
std::unique_lock lk(xa_alias_lock);
if (newmap != nullptr) {
if (newmap != nullptr)
xa_alias_map = std::move(newmap);
if (newdom != nullptr)
xa_domain_set = std::move(newdom);
}
}
std::unique_lock slp_hold(slp_mtx);
xa_thread_wake.wait_for(slp_hold, g_cache_lifetime);
Expand Down

0 comments on commit 3267bbf

Please sign in to comment.