Skip to content

Commit 7196bec

Browse files
committed
[BP] MB-59702: Don't access null Stream pointer
Change a log message so there is no access to a null pointer. Change-Id: I7f814d0292c2ffa5cd9c52f692d3d854575367a4 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/201297 Tested-by: Jim Walker <[email protected]> Well-Formed: Restriction Checker Reviewed-by: Trond Norbye <[email protected]>
1 parent dea312d commit 7196bec

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

engines/ep/src/dcp/producer.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,12 +1578,8 @@ void DcpProducer::addTakeoverStats(const AddStatFn& add_stat,
15781578
stream->addTakeoverStats(add_stat, c, vb);
15791579
return;
15801580
}
1581-
logger->warn(
1582-
"({}) "
1583-
"DcpProducer::addTakeoverStats Stream type is {} and not "
1584-
"the expected Active",
1585-
vb.getId(),
1586-
stream->getStreamTypeName());
1581+
logger->warn("({}) DcpProducer::addTakeoverStats no stream found",
1582+
vb.getId());
15871583
} else if (handle.size() > 1) {
15881584
throw std::logic_error(
15891585
"DcpProducer::addTakeoverStats unexpected size streams:(" +

0 commit comments

Comments
 (0)