summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-07-08 20:38:14 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-07-08 20:38:14 +0000
commit3af0dfbc0f011a70259424d446a8a9f1bd9b994b (patch)
tree94f3fdb04041708e0c01be421de5e333107708c5 /storage
parentf5a7e90808220419841444ad1e8094087b0a8695 (diff)
Remove assert that i snow possible during testing.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/common/storagelink.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/src/vespa/storage/common/storagelink.cpp b/storage/src/vespa/storage/common/storagelink.cpp
index d4615ee2df5..b68441be298 100644
--- a/storage/src/vespa/storage/common/storagelink.cpp
+++ b/storage/src/vespa/storage/common/storagelink.cpp
@@ -123,9 +123,9 @@ void StorageLink::sendDown(const StorageMessage::SP& msg)
default:
LOG(error, "Link %s trying to send %s down while in state %s",
toString().c_str(), msg->toString().c_str(), stateToString(getState()));
- assert(false);
+ return;
}
- assert(msg.get());
+ assert(msg);
LOG(spam, "Storage Link %s to handle %s", toString().c_str(), msg->toString().c_str());
if (isBottom()) {
LOG(spam, "Storage link %s at bottom of chain got message %s.", toString().c_str(), msg->toString().c_str());
@@ -165,9 +165,9 @@ void StorageLink::sendUp(const shared_ptr<StorageMessage> & msg)
default:
LOG(error, "Link %s trying to send %s up while in state %s",
toString().c_str(), msg->toString(true).c_str(), stateToString(getState()));
- assert(false);
+ return;
}
- assert(msg.get());
+ assert(msg);
if (isTop()) {
ostringstream ost;
ost << "Unhandled message at top of chain " << *msg << ".";