Tie in transaction master code.

This commit is contained in:
JoelKatz
2012-01-27 11:33:36 -08:00
parent 1896348b7b
commit 0867986c35
6 changed files with 51 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ protected:
std::map<key_type, weak_data_ptr> mMap; // Track stored objects
public:
TaggedCache(int size, int age) : mTargetSize(size), mTargetAge(age), mLastSweep(0) { ; }
TaggedCache(int size, int age) : mTargetSize(size), mTargetAge(age), mLastSweep(time(NULL)) { ; }
int getTargetSize() const;
int getTargetAge() const;