Hindex: fix btreeindex close issue

This commit is contained in:
peiwangdb 2021-09-15 10:34:26 -07:00
parent f3d2d06232
commit 44cee52e98
2 changed files with 5 additions and 2 deletions

View File

@ -247,7 +247,10 @@ public class IndexCache
cache.invalidate(filterKey);
break;
case TABLE:
// no need to break index, and lastModifiedTime is not used for TABLE level. no need to do anything
// no need to break index, and lastModifiedTime is not used for TABLE level, but we need to
// toggle back the noCloseFlag, as it was previously set to true.
filterKey.setNoCloseFlag(false);
break;
}
}
catch (ExecutionException e) {

View File

@ -87,7 +87,7 @@ public class IndexCacheKey
public void setNoCloseFlag(boolean flag)
{
this.noCloseFlag = true;
this.noCloseFlag = flag;
}
public boolean skipCloseIndex()