[GRASS-SVN] r46631 - in grass/branches/releasebranch_6_4/lib/db: .
dbmi_client sqlp
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jun 9 03:57:42 EDT 2011
Author: neteler
Date: 2011-06-09 00:57:42 -0700 (Thu, 09 Jun 2011)
New Revision: 46631
Modified:
grass/branches/releasebranch_6_4/lib/db/README
grass/branches/releasebranch_6_4/lib/db/dbmi_client/db.c
grass/branches/releasebranch_6_4/lib/db/sqlp/sql.c
Log:
+debug msgs to help find why it failed (backport from 6.5, r43474); cosmetics
Modified: grass/branches/releasebranch_6_4/lib/db/README
===================================================================
--- grass/branches/releasebranch_6_4/lib/db/README 2011-06-09 07:50:39 UTC (rev 46630)
+++ grass/branches/releasebranch_6_4/lib/db/README 2011-06-09 07:57:42 UTC (rev 46631)
@@ -5,7 +5,7 @@
* Radim Blazek <radim.blazek gmail.com>,
* Brad Douglas <rez touchofmadness.com>,
* Glynn Clements <glynn gclements.plus.com>,
- * Roberto Flor, Hamish Bowman <hamish_nospam yahoo.com>,
+ * Roberto Flor, Hamish Bowman <hamish_b yahoo.com>,
* Markus Neteler <neteler itc.it>,
* Huidae Cho <grass4u gmail.com>,
* Paul Kelly <paul-grass stjohnspoint.co.uk>,
Modified: grass/branches/releasebranch_6_4/lib/db/dbmi_client/db.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/db/dbmi_client/db.c 2011-06-09 07:50:39 UTC (rev 46630)
+++ grass/branches/releasebranch_6_4/lib/db/dbmi_client/db.c 2011-06-09 07:57:42 UTC (rev 46631)
@@ -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;
}
Modified: grass/branches/releasebranch_6_4/lib/db/sqlp/sql.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/db/sqlp/sql.c 2011-06-09 07:50:39 UTC (rev 46630)
+++ grass/branches/releasebranch_6_4/lib/db/sqlp/sql.c 2011-06-09 07:57:42 UTC (rev 46631)
@@ -11,7 +11,7 @@
* Markus Neteler <neteler itc.it>,
* Martin Landa <landa.martin gmail.com>,
* Moritz Lennert <mlennert club.worldonline.be>,
-* Hamish Bowman <hamish_nospam yahoo.com>,
+* Hamish Bowman <hamish_b yahoo.com>,
* Daniel Calvelo Aros <dca.gis gmail.com>,
* Paul Kelly <paul-grass stjohnspoint.co.uk>,
* Alex Shevlakov <sixote yahoo.com>
More information about the grass-commit
mailing list