Fix regression of repo not registering prefixes for previously inserted data

Change-Id: I90e47def6219560cdadd281b8f65b16036aa0801
Refs: #4247
diff --git a/src/storage/repo-storage.cpp b/src/storage/repo-storage.cpp
index 334b4d3..6029a05 100644
--- a/src/storage/repo-storage.cpp
+++ b/src/storage/repo-storage.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /*
- * Copyright (c) 2014-2018, Regents of the University of California.
+ * Copyright (c) 2014-2019, Regents of the University of California.
  *
  * This file is part of NDN repo-ng (Next generation of NDN repository).
  * See AUTHORS.md for complete list of repo-ng authors and contributors.
@@ -22,6 +22,7 @@
 
 #include <istream>
 
+#include <ndn-cxx/util/exception.hpp>
 #include <ndn-cxx/util/logger.hpp>
 
 namespace repo {
@@ -33,6 +34,14 @@
 {
 }
 
+void
+RepoStorage::notifyAboutExistingData()
+{
+  m_storage.forEach([this] (const Name& name) {
+      afterDataInsertion(name);
+    });
+}
+
 bool
 RepoStorage::insertData(const Data& data)
 {