Add constructor new to MultiNodeFilesLogNamer
Add a constructor to MultiNodeFilesLogNamer allowing a aos
configuration to be specified. This is necessary when doing a
rerun and saving a log while using MultiNodeFilesLogNamer.
Change-Id: Ia991df8343f739e7b1cb2981bcd036333e6731d9
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/configuration.h b/aos/configuration.h
index 80c0238..a34b5a8 100644
--- a/aos/configuration.h
+++ b/aos/configuration.h
@@ -127,6 +127,11 @@
const Node *GetMyNode(const Configuration *config);
const Node *GetNodeFromHostname(const Configuration *config,
std::string_view name);
+// Determine if this node exists in this configuration. This function checks to
+// make sure this pointer exists in the configuration. This function is useful
+// for determing if the node is named the same but from a different
+// configuration.
+bool IsNodeFromConfiguration(const Configuration *config, const Node *node);
// Returns a printable name for the node. (singlenode) if we are on a single
// node system, and the name otherwise.