Detect server deadlocks and trigger the auto-restart mechanism.

This commit is contained in:
JoelKatz
2013-05-08 15:21:22 -07:00
parent 34a15c2baa
commit 04b0f968fd
3 changed files with 28 additions and 1 deletions

View File

@@ -106,6 +106,8 @@ protected:
int mUptime;
int mSpace2[4];
int mDeadLock; // Detect server deadlocks
mutable boost::mutex mLock;
void canonicalize(LoadSource&, int upTime) const;
@@ -141,6 +143,7 @@ public:
int getCost(LoadType t) { return mCosts[static_cast<int>(t)].mCost; }
int getUptime();
void noDeadLock();
};
class LoadFeeTrack