[7343] Fixed uninitilized lock fields for grid info.

This must fix problem with unexpected lock grids data in memory
with enabled grid unloading config setting.
This commit is contained in:
VladimirMangos 2009-02-26 08:51:42 +03:00
parent 4a46cb843d
commit 3dd6b69adb
2 changed files with 5 additions and 3 deletions

View file

@ -29,8 +29,10 @@
class GridInfo
{
public:
GridInfo() : i_timer(0) {}
GridInfo(time_t expiry, bool unload = true ) : i_timer(expiry), i_unloadExplicitLock(!unload) {}
GridInfo()
: i_timer(0), i_unloadActiveLockCount(0), i_unloadExplicitLock(false), i_unloadReferenceLock(false) {}
GridInfo(time_t expiry, bool unload = true )
: i_timer(expiry), i_unloadActiveLockCount(0), i_unloadExplicitLock(!unload), i_unloadReferenceLock(false) {}
const TimeTracker& getTimeTracker() const { return i_timer; }
bool getUnloadLock() const { return i_unloadActiveLockCount || i_unloadExplicitLock || i_unloadReferenceLock; }
void setUnloadExplicitLock( bool on ) { i_unloadExplicitLock = on; }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7342"
#define REVISION_NR "7343"
#endif // __REVISION_NR_H__