From: Kern Sibbald Date: Thu, 6 Nov 2008 21:45:21 +0000 (+0000) Subject: turn off code that does not compile X-Git-Tag: Release-3.0.0~623 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6db6545d7539366296d8a7b50e7f77094a07d69b;p=bacula%2Fbacula turn off code that does not compile git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8000 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/sql.c b/bacula/src/cats/sql.c index 41b4b7fece..5ce1aeb695 100644 --- a/bacula/src/cats/sql.c +++ b/bacula/src/cats/sql.c @@ -311,7 +311,9 @@ char *db_strerror(B_DB *mdb) return mdb->errmsg; } -static void update_lock_dbg(B_DB *mdb) { +static void update_lock_dbg(B_DB *mdb) +{ +#ifdef xxx if (mdb->allow_transactions) { /* batch connection */ return; } @@ -321,9 +323,12 @@ static void update_lock_dbg(B_DB *mdb) { _db_lock_recurse_count++; _db_lock_time = (utime_t) time(NULL); _db_lock_threadid = pthread_self(); +#endif } -static void update_unlock_dbg(B_DB *mdb) { +static void update_unlock_dbg(B_DB *mdb) +{ +#ifdef xxx if (mdb->allow_transactions) { /* batch connection */ return; } @@ -334,6 +339,7 @@ static void update_unlock_dbg(B_DB *mdb) { if (!_db_lock_recurse_count) { memset(&_db_lock_threadid, 0, sizeof(_db_lock_threadid)); } +#endif } /*