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

Commit

Permalink
The database file handle might be open or not, if we refresh it
Browse files Browse the repository at this point in the history
  • Loading branch information
borisz committed Apr 13, 2012
1 parent 40c0200 commit bbaad85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.2.8 Apr 13th 2012
- Fix: Close the database file without exceptions whether it is
open(STANDARD) or not(MEMORY_CACHE) in conjunction with the
CHECK_CACHE option. (Lorenzo Crosby)
1.2.7 Apr 10th 2012
- Update timezones ( Boris Zentner )
- Update FIPS codes 20120402 ( Boris Zentner )
Expand Down
2 changes: 1 addition & 1 deletion source/com/maxmind/geoip/LookupService.java
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ synchronized void _check_mtime(){
if (t != mtime){
/* GeoIP Database file updated */
/* refresh filehandle */
file.close();
close();
file = new RandomAccessFile(databaseFile,"r");
databaseInfo = null;
init();
Expand Down

0 comments on commit bbaad85

Please sign in to comment.