mgmt: tables.cs_policy config option
refs #3148
Change-Id: Icf30bbe508c1c491949d9fcb433fdfa16842d312
diff --git a/daemon/table/cs.cpp b/daemon/table/cs.cpp
index 0dd5ca2..dd72214 100644
--- a/daemon/table/cs.cpp
+++ b/daemon/table/cs.cpp
@@ -51,9 +51,9 @@
return Policy::create(DEFAULT_POLICY);
}
-Cs::Cs(size_t nMaxPackets, unique_ptr<Policy> policy)
+Cs::Cs(size_t nMaxPackets)
{
- this->setPolicyImpl(std::move(policy));
+ this->setPolicyImpl(makeDefaultPolicy());
m_policy->setLimit(nMaxPackets);
}
diff --git a/daemon/table/cs.hpp b/daemon/table/cs.hpp
index 8c3e46b..03d6fdd 100644
--- a/daemon/table/cs.hpp
+++ b/daemon/table/cs.hpp
@@ -57,16 +57,13 @@
namespace nfd {
namespace cs {
-unique_ptr<Policy>
-makeDefaultPolicy();
-
/** \brief represents the ContentStore
*/
class Cs : noncopyable
{
public:
explicit
- Cs(size_t nMaxPackets = 10, unique_ptr<Policy> policy = makeDefaultPolicy());
+ Cs(size_t nMaxPackets = 10);
/** \brief inserts a Data packet
*/