Report the number of "backed up" node writes in get_counts.

This commit is contained in:
JoelKatz
2013-05-14 10:31:26 -07:00
parent d0d071c46b
commit d1c6b97643
3 changed files with 16 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ protected:
boost::mutex mWriteMutex;
boost::condition_variable mWriteCondition;
int mWriteGeneration;
int mWriteLoad;
std::vector< boost::shared_ptr<HashedObject> > mWriteSet;
bool mWritePending;
@@ -101,6 +102,7 @@ public:
void waitWrite();
void tune(int size, int age);
void sweep() { mCache.sweep(); mNegativeCache.sweep(); }
int getWriteLoad();
int import(const std::string& fileName);
};