CacheModel always Flush caches when i do set seconds=0
------------------------------------------------------
Key: IBATISNET-289
URL: https://issues.apache.org/jira/browse/IBATISNET-289
Project: iBatis for .NET
Issue Type: Bug
Components: DataMapper
Affects Versions: DataMapper 1.6.2
Environment: .net 2.0/vs2005
Reporter: tom liu
lock(this)
{
if (_lastFlush != NO_FLUSH_INTERVAL
&& (DateTime.Now.Ticks - _lastFlush > _flushInterval.Interval))
{
Flush();
}
}
//should be changed to::::
lock(this)
{
if (_flushInterval.Interval != NO_FLUSH_INTERVAL
&& (DateTime.Now.Ticks - _lastFlush > _flushInterval.Interval))
{
Flush();
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.