fix #2421 update lastLoadedTime
This commit is contained in:
parent
1ed2b0cddf
commit
2bd33d753c
1 changed files with 3 additions and 1 deletions
|
@ -72,9 +72,11 @@ public class DataStoreFactory {
|
|||
}
|
||||
|
||||
public String[] getDataStoreNames() {
|
||||
if (System.currentTimeMillis() - lastLoadedTime > 60000L) {
|
||||
final long now = System.currentTimeMillis();
|
||||
if (now - lastLoadedTime > 60000L) {
|
||||
final List<String> nameList = loadDataStoreNameList();
|
||||
dataStoreNames = nameList.toArray(n -> new String[nameList.size()]);
|
||||
lastLoadedTime = now;
|
||||
}
|
||||
return dataStoreNames;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue