From ef2e8d3c95ef2fed7ead11bea31e3ea0023fc23a Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 14 Oct 2010 09:49:23 +1100 Subject: [PATCH] If tdb_open() fails when trying to open the vacuuming database, print errno so we get some idea of why this failed. (This used to be ctdb commit 3695462ade497356d1b86c6fd1bc1765f1d11e57) --- ctdb/server/ctdb_vacuum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index b0c7d4032de..4104853de1c 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -702,7 +702,7 @@ static int get_vacuum_interval(struct ctdb_db_context *ctdb_db) flags, O_RDWR|O_CREAT, 0600); if (!tdb) { - DEBUG(DEBUG_ERR,("Unable to open/create database %s using default interval\n", vac_dbname)); + DEBUG(DEBUG_ERR,("Unable to open/create database %s using default interval. Errno : %s (%d)\n", vac_dbname, strerror(errno), errno)); talloc_free(tmp_ctx); return interval; }