mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-16 10:52:20 +08:00
Check validity of ActorLineage
This commit is contained in:
parent
7d308c7199
commit
045d20ab7a
@ -275,7 +275,10 @@ ActorLineageProfilerT::ActorLineageProfilerT() : impl(new ProfilerImpl()) {
|
|||||||
std::bind(&ActorLineageSet::copy, std::ref(IAsyncFileSystem::filesystem()->getActorLineageSet())));
|
std::bind(&ActorLineageSet::copy, std::ref(IAsyncFileSystem::filesystem()->getActorLineageSet())));
|
||||||
collection->collector()->addGetter(WaitState::Running, []() {
|
collection->collector()->addGetter(WaitState::Running, []() {
|
||||||
auto res = currentLineageThreadSafe.get();
|
auto res = currentLineageThreadSafe.get();
|
||||||
|
if (res.isValid()) {
|
||||||
return std::vector<Reference<ActorLineage>>({ res });
|
return std::vector<Reference<ActorLineage>>({ res });
|
||||||
|
}
|
||||||
|
return std::vector<Reference<ActorLineage>>();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user