diff --git a/src/ipa/raspberrypi/controller/metadata.hpp b/src/ipa/raspberrypi/controller/metadata.hpp
index 319f2320fc70..ac64f17f617c 100644
--- a/src/ipa/raspberrypi/controller/metadata.hpp
+++ b/src/ipa/raspberrypi/controller/metadata.hpp
@@ -75,6 +75,26 @@ public:
 		return *this;
 	}
 
+	void Overwrite(Metadata &other)
+	{
+		std::lock_guard<std::mutex> lock(mutex_);
+		std::lock_guard<std::mutex> other_lock(other.mutex_);
+
+		/*
+		 * Overwrite any contents of data_ with identical keys from
+		 * other.data_. Any keys from other.data_ that are not preset in
+		 * data_ will simply be copied across.
+		 *
+		 * The reason for the seemingly illogical steps below is because
+		 * std::map::merge() does not overwrite existing keys.
+		 */
+		other.data_.merge(data_);
+		std::swap(data_, other.data_);
+
+		/* Render the other object as empty now! */
+		other.data_.clear();
+	}
+
 	template<typename T>
 	T *GetLocked(std::string const &tag)
 	{
