mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
Address build failure
LogSystemPeekCursor.actor.cpp: Check if "interf" is set before referencing it.
This commit is contained in:
parent
bdb5517f1e
commit
6275adc5a0
@ -393,7 +393,7 @@ Version ILogSystem::ServerPeekCursor::getMinKnownCommittedVersion() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Optional<UID> ILogSystem::ServerPeekCursor::getPrimaryPeekLocation() const {
|
Optional<UID> ILogSystem::ServerPeekCursor::getPrimaryPeekLocation() const {
|
||||||
if (interf->get().present()) {
|
if (interf && interf->get().present()) {
|
||||||
return interf->get().id();
|
return interf->get().id();
|
||||||
}
|
}
|
||||||
return Optional<UID>();
|
return Optional<UID>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user