commit | dd32de83d0322fd1120f113948499e07198f3ef6 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat Aug 20 00:47:28 2011 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat Aug 20 00:47:28 2011 -0700 |
tree | d23d7740a160f13d0d7dd10ac4d4d77e7d102ff7 | |
parent | 070aa484bd12c3013f91866c4aa832dd4a88c699 [diff] [blame] |
Forgot to actually enforce limit on content store. Solved.
diff --git a/model/ccnx-content-store.cc b/model/ccnx-content-store.cc index 4633000..b526308 100644 --- a/model/ccnx-content-store.cc +++ b/model/ccnx-content-store.cc
@@ -126,6 +126,8 @@ if (it == m_contentStore.end ()) { // add entry to the top m_contentStore.get<mru> ().push_front (CcnxContentStoreEntry (header, packet)); + if (m_contentStore.size () > m_maxSize) + m_contentStore.get<mru> ().pop_back (); } else {