[fdo-commits] r2576 - trunk/Providers/GDAL/Src/Provider

svn_fdo at osgeo.org svn_fdo at osgeo.org
Wed Feb 21 02:18:58 EST 2007


Author: warmerdam
Date: 2007-02-21 02:18:58 -0500 (Wed, 21 Feb 2007)
New Revision: 2576

Modified:
   trunk/Providers/GDAL/Src/Provider/FdoRfpDatasetCache.cpp
Log:
Add some debug output in bad situations

Modified: trunk/Providers/GDAL/Src/Provider/FdoRfpDatasetCache.cpp
===================================================================
--- trunk/Providers/GDAL/Src/Provider/FdoRfpDatasetCache.cpp	2007-02-21 07:18:18 UTC (rev 2575)
+++ trunk/Providers/GDAL/Src/Provider/FdoRfpDatasetCache.cpp	2007-02-21 07:18:58 UTC (rev 2576)
@@ -169,5 +169,14 @@
     int iDS;
 
     for( iDS = nDatasetCount-1; iDS >= 0; iDS-- )
+    {
+        GDALReferenceDataset( pahDatasetList[iDS] );
+        if( GDALDereferenceDataset( pahDatasetList[iDS] ) > 1 )
+            CPLDebug( "RfpDatasetCache::CloseAll()",
+                      "Forcing closure of %s even though there\n"
+                      "are still references against it.", 
+                      GDALGetDescription( pahDatasetList[iDS] ) );
+        
         CloseDataset( iDS );
+    }
 }



More information about the fdo-commits mailing list