Commit 0ba81dc5 authored by David Johnson's avatar David Johnson

Bugfix: correct libdb::TBSetNodeEventState return value to match documented API.

(No existing code ever checked the return value from TBSetNodeEventState
until libosload_virtnode started to do so, to retry failed event sends
under high load in large-scale vnode experiments.  libevent, Node, and
libdb alternate return conventions; this sets them right.)
parent 122980a9
......@@ -943,7 +943,8 @@ sub TBSetNodeEventState($$;$)
if (!ref($node)) {
$node = LocalNodeLookup($node);
}
return $node->SetEventState($state, $fatal);
my $rc = $node->SetEventState($state, $fatal);
return (($rc == 0) ? 1 : 0);
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment