Permalink
Browse files

msOGRFileClose: drop useless OGR mutex that could cause a dead-lock w…

…ith tileindex (#4869)
  • Loading branch information...
1 parent 7358a06 commit 51f98b05aae13d2548fd534f20ff7309d737da89 @rouault rouault committed Feb 19, 2014
Showing with 0 additions and 3 deletions.
  1. +0 −3 mapogr.cpp
View
@@ -1261,16 +1261,13 @@ static int msOGRFileClose(layerObj *layer, msOGRFileInfo *psInfo )
// Make sure we aren't holding the lock when the callback may need it.
RELEASE_OGR_LOCK;
msConnPoolRelease( layer, psInfo->hDS );
- ACQUIRE_OGR_LOCK;
// Free current tile if there is one.
if( psInfo->poCurTile != NULL )
msOGRFileClose( layer, psInfo->poCurTile );
CPLFree(psInfo);
- RELEASE_OGR_LOCK;
-
return MS_SUCCESS;
}

0 comments on commit 51f98b0

Please sign in to comment.