[GRASS-SVN] r43474 - grass/branches/develbranch_6/lib/db/dbmi_client

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 15 19:53:22 EDT 2010


Author: hamish
Date: 2010-09-15 23:53:22 +0000 (Wed, 15 Sep 2010)
New Revision: 43474

Modified:
   grass/branches/develbranch_6/lib/db/dbmi_client/db.c
Log:
+debug msgs to help find why it failed

Modified: grass/branches/develbranch_6/lib/db/dbmi_client/db.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_client/db.c	2010-09-15 21:09:54 UTC (rev 43473)
+++ grass/branches/develbranch_6/lib/db/dbmi_client/db.c	2010-09-15 23:53:22 UTC (rev 43474)
@@ -61,9 +61,16 @@
 */
 int db_close_database_shutdown_driver(dbDriver * driver)
 {
-    int status = db_close_database(driver);
-    if (db_shutdown_driver(driver) != 0)
+    int status;
+
+    status = db_close_database(driver);
+    G_debug(2, "db_close_database() result: %d  (%d means success)",
+	    status, DB_OK);
+
+    if (db_shutdown_driver(driver) != 0) {
         status = DB_FAILED;
+	G_debug(2, "db_shutdown_driver() failed");
+    }
 
     return status;
 }



More information about the grass-commit mailing list