test pit; fix SyncInterestTable bug; modify fetchAll() return
diff --git a/model/sync-interest-table.cc b/model/sync-interest-table.cc
index 5b1c3e0..0ec430c 100644
--- a/model/sync-interest-table.cc
+++ b/model/sync-interest-table.cc
@@ -28,16 +28,17 @@
namespace Sync
{
-unordered_set<string> SyncInterestTable::fetchAll()
+vector<string> SyncInterestTable::fetchAll()
{
expireInterests();
recursive_mutex::scoped_lock lock(m_mutex);
- unordered_set<string> entries;
+ vector<string> entries;
for (unordered_map<string, time_t>::iterator it = m_table.begin(); it !=
m_table.end(); ++it) {
- entries.insert(it->first);
+ entries.push_back(it->first);
}
+ m_table.clear();
return entries;
}