mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
Update helio (#2538)
chore: UpdateHelio dependency Add support for asan/ubsan checkers in our dev environment. Remove more clang warnings. Once we fix all the problems we will enable them in our CI as well. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
4c0055ddf0
commit
336d6ff181
21 changed files with 74 additions and 51 deletions
|
@ -332,15 +332,16 @@ void MemoryCmd::Track(CmdArgList args) {
|
|||
}
|
||||
|
||||
if (sub_cmd == "ADD") {
|
||||
auto [lower_bound, upper_bound, odds] = parser.Next<size_t, size_t, double>();
|
||||
AllocationTracker::TrackingInfo tracking_info;
|
||||
std::tie(tracking_info.lower_bound, tracking_info.upper_bound, tracking_info.sample_odds) =
|
||||
parser.Next<size_t, size_t, double>();
|
||||
if (parser.HasError()) {
|
||||
return cntx_->SendError(parser.Error()->MakeReply());
|
||||
}
|
||||
|
||||
atomic_bool error{false};
|
||||
shard_set->pool()->Await([&](unsigned index, auto*) {
|
||||
if (!AllocationTracker::Get().Add(
|
||||
{.lower_bound = lower_bound, .upper_bound = upper_bound, .sample_odds = odds})) {
|
||||
if (!AllocationTracker::Get().Add(tracking_info)) {
|
||||
error.store(true);
|
||||
}
|
||||
});
|
||||
|
@ -359,8 +360,8 @@ void MemoryCmd::Track(CmdArgList args) {
|
|||
}
|
||||
|
||||
atomic_bool error{false};
|
||||
shard_set->pool()->Await([&](unsigned index, auto*) {
|
||||
if (!AllocationTracker::Get().Remove(lower_bound, upper_bound)) {
|
||||
shard_set->pool()->Await([&, lo = lower_bound, hi = upper_bound](unsigned index, auto*) {
|
||||
if (!AllocationTracker::Get().Remove(lo, hi)) {
|
||||
error.store(true);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue