Clear ConcurrentMap before loading archive data
parent
b8426c6658
commit
b8fb26a0b0
|
@ -113,6 +113,7 @@ private:
|
||||||
template<class Archive>
|
template<class Archive>
|
||||||
void load(Archive& ar, const unsigned int /*version*/)
|
void load(Archive& ar, const unsigned int /*version*/)
|
||||||
{
|
{
|
||||||
|
this->clear();
|
||||||
// Load into STL container and then fill our map
|
// Load into STL container and then fill our map
|
||||||
FastVector<std::pair<KEY, VALUE> > map;
|
FastVector<std::pair<KEY, VALUE> > map;
|
||||||
ar & BOOST_SERIALIZATION_NVP(map);
|
ar & BOOST_SERIALIZATION_NVP(map);
|
||||||
|
|
Loading…
Reference in New Issue