assert that cluster name is only set once
#include <vespa/vespalib/stllike/asciistream.h>
#include <vespa/vdslib/distribution/distribution.h>
#include <vespa/document/fieldset/fieldsetrepo.h>
+#include <cassert>
namespace storage {
@@ -24,6 +25,7 @@ StorageComponent::setNodeInfo(vespalib::stringref clusterName,
uint16_t index)
{
// Assumed to not be set dynamically.
+ assert(_cluster_ctx.my_cluster_name.empty());
_cluster_ctx.my_cluster_name = clusterName;
_nodeType = &nodeType;
_index = index;
