Skip to content

Commit c35c3d4

Browse files
committed
fix Cache.FlushOnExecute bug
1 parent 0ad47f4 commit c35c3d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build/version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<VersionMajor>4</VersionMajor>
44
<VersionMinor>0</VersionMinor>
5-
<VersionPatch>10</VersionPatch>
5+
<VersionPatch>11</VersionPatch>
66
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
77
</PropertyGroup>
88
</Project>

src/SmartSql/Cache/CacheManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ private void InitCacheMapped()
4242
if (!_statementMappedFlushCache.TryGetValue(onExecute.Statement, out var mappedCaches))
4343
{
4444
mappedCaches = new List<Configuration.Cache>();
45+
_statementMappedFlushCache.TryAdd(onExecute.Statement, mappedCaches);
4546
}
4647
mappedCaches.Add(cache);
4748
}

0 commit comments

Comments
 (0)