Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit bbaad85

Browse files
committed
The database file handle might be open or not, if we refresh it
1 parent 40c0200 commit bbaad85

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.2.8 Apr 13th 2012
2+
- Fix: Close the database file without exceptions whether it is
3+
open(STANDARD) or not(MEMORY_CACHE) in conjunction with the
4+
CHECK_CACHE option. (Lorenzo Crosby)
15
1.2.7 Apr 10th 2012
26
- Update timezones ( Boris Zentner )
37
- Update FIPS codes 20120402 ( Boris Zentner )

source/com/maxmind/geoip/LookupService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ synchronized void _check_mtime(){
574574
if (t != mtime){
575575
/* GeoIP Database file updated */
576576
/* refresh filehandle */
577-
file.close();
577+
close();
578578
file = new RandomAccessFile(databaseFile,"r");
579579
databaseInfo = null;
580580
init();

0 commit comments

Comments
 (0)