I don't think this is needed, but it's harmless and saves me from worrying.

This commit is contained in:
JoelKatz
2013-02-10 02:44:15 -08:00
parent fe2e981273
commit 36a7bc270d
2 changed files with 9 additions and 1 deletions

View File

@@ -330,3 +330,11 @@ void ValidationCollection::doWrite()
}
mWriting = false;
}
void ValidationCollection::sweep()
{
boost::mutex::scoped_lock sl(mValidationLock);
mValidations.sweep();
}
// vim:ts=4

View File

@@ -50,7 +50,7 @@ public:
void tune(int size, int age);
void flush();
void sweep() { mValidations.sweep(); }
void sweep();
};
#endif