]> git.sur5r.net Git - bacula/bacula/log
bacula/bacula
14 years agoFix error introduced when refactoring some of the code.
Marco van Wieringen [Tue, 6 Apr 2010 20:29:50 +0000 (22:29 +0200)]
Fix error introduced when refactoring some of the code.

14 years agoLets uniformly call a INGconn a dbconn in all Ingres functions.
Marco van Wieringen [Tue, 6 Apr 2010 18:09:22 +0000 (20:09 +0200)]
Lets uniformly call a INGconn a dbconn in all Ingres functions.

14 years agoRegenerated Ingres code using esqlcc
Marco van Wieringen [Tue, 6 Apr 2010 13:41:21 +0000 (15:41 +0200)]
Regenerated Ingres code using esqlcc

14 years agoReplace INGcheck with EXEC SQL WHENEVER SQLERROR GOTO construction used by Ingres...
Marco van Wieringen [Tue, 6 Apr 2010 13:35:18 +0000 (15:35 +0200)]
Replace INGcheck with EXEC SQL WHENEVER SQLERROR GOTO construction used by Ingres embedded SQL.

14 years agoFix typo
Marco van Wieringen [Mon, 5 Apr 2010 20:22:50 +0000 (22:22 +0200)]
Fix typo

14 years agoAdded empty db_check_backend_thread_safe to dbi backend.
Marco van Wieringen [Mon, 5 Apr 2010 20:11:51 +0000 (22:11 +0200)]
Added empty db_check_backend_thread_safe to dbi backend.

14 years agoFix some typos and some forgotten things. Now the code at least compiles for all...
Marco van Wieringen [Mon, 5 Apr 2010 19:57:58 +0000 (21:57 +0200)]
Fix some typos and some forgotten things. Now the code at least compiles for all backends.

14 years agoMake sql_insert_id a atomic function which executes the insert query and when that...
Marco van Wieringen [Mon, 5 Apr 2010 16:53:04 +0000 (18:53 +0200)]
Make sql_insert_id a atomic function which executes the insert query and when that succeeds
retrieves the id the database used for storing the inserted record. Some databases want
this to be atomic (e.g. without a COMMIT in between.) Coding wise this is also much cleaner.

14 years agoDrop have_insert_id in mdb as its always true for all backends.
Marco van Wieringen [Mon, 5 Apr 2010 15:15:17 +0000 (17:15 +0200)]
Drop have_insert_id in mdb as its always true for all backends.

14 years agoFix typo
Marco van Wieringen [Mon, 5 Apr 2010 14:28:09 +0000 (16:28 +0200)]
Fix typo

14 years agoLets claim we also did something on it.
Marco van Wieringen [Mon, 5 Apr 2010 13:47:34 +0000 (15:47 +0200)]
Lets claim we also did something on it.

14 years agoLets call it COMMIT and not END as that seems to be the counterpart of BEGIN for...
Marco van Wieringen [Mon, 5 Apr 2010 13:42:24 +0000 (15:42 +0200)]
Lets call it COMMIT and not END as that seems to be the counterpart of BEGIN for transactions.
Updated Ingres lock queries to only start a transaction as the current SQL is not valid Ingres SQL.

14 years agoFix typos
Marco van Wieringen [Mon, 5 Apr 2010 11:46:59 +0000 (13:46 +0200)]
Fix typos

14 years agoAdd support for transactions. Normal operations for Ingres is to make things one...
Marco van Wieringen [Mon, 5 Apr 2010 11:38:12 +0000 (13:38 +0200)]
Add support for transactions. Normal operations for Ingres is to make things one big transaction.
The old code never commits anything and as such you loose all state on exit of the dird.
Now we always commit our work unless we are in a transaction.

14 years agoFirst version of Ingres Batch Insert code.
Marco van Wieringen [Mon, 5 Apr 2010 08:35:23 +0000 (10:35 +0200)]
First version of Ingres Batch Insert code.

14 years agoFix typo in sql.
Marco van Wieringen [Sun, 4 Apr 2010 20:40:14 +0000 (22:40 +0200)]
Fix typo in sql.

14 years agoFix logic error introduced when implementing multi thread support, overwriting rowcount
Marco van Wieringen [Sun, 4 Apr 2010 18:14:00 +0000 (20:14 +0200)]
Fix logic error introduced when implementing multi thread support, overwriting rowcount
with INGcheck value lets use a seperate variable.

14 years agoFirst attempt at making things multi-threaded and make it possible to
Marco van Wieringen [Sun, 4 Apr 2010 17:46:24 +0000 (19:46 +0200)]
First attempt at making things multi-threaded and make it possible to
have multiple connections to the database without having the dreaded
ERR=E_LQ002E The 'execute immediate' query has been issued outside of a DBMS session.
This compiles but seems to give some problems so into the debugger it is.

14 years agoNeed an extra lib for dynamic linking against Ingres.
Marco van Wieringen [Sun, 4 Apr 2010 11:46:25 +0000 (13:46 +0200)]
Need an extra lib for dynamic linking against Ingres.

14 years agoUse -lq.1 -lcompat.1 as shared libraries instead of linking with -lingres which is...
Marco van Wieringen [Sun, 4 Apr 2010 10:55:22 +0000 (12:55 +0200)]
Use -lq.1 -lcompat.1 as shared libraries instead of linking with -lingres which is a static library.
Also need to change generated code of esqlcc a bit to get things to link with the IIsqlca function.

14 years agoFix typo
Marco van Wieringen [Sun, 4 Apr 2010 10:00:02 +0000 (12:00 +0200)]
Fix typo

14 years agoAs we have a multithreaded application let tell that to esqlcc so it can optimize...
Marco van Wieringen [Sun, 4 Apr 2010 08:21:47 +0000 (10:21 +0200)]
As we have a multithreaded application let tell that to esqlcc so it can optimize for that.

14 years agoRegenerated myingres.c from myingres.sc
Marco van Wieringen [Sat, 3 Apr 2010 21:02:23 +0000 (23:02 +0200)]
Regenerated myingres.c from myingres.sc

14 years agoLets close the session based on session_id so we close the session we want to close...
Marco van Wieringen [Sat, 3 Apr 2010 21:00:29 +0000 (23:00 +0200)]
Lets close the session based on session_id so we close the session we want to close not just an active connection.

14 years agoLets rewrite the query at a higher level then we see the new query in the debugging and
Marco van Wieringen [Sat, 3 Apr 2010 20:49:22 +0000 (22:49 +0200)]
Lets rewrite the query at a higher level then we see the new query in the debugging and
we only have to do the rewrite logic once.

14 years agoCreating a database as an other user and giving grants doesn't seem to work for Ingres.
Marco van Wieringen [Sat, 3 Apr 2010 20:18:55 +0000 (22:18 +0200)]
Creating a database as an other user and giving grants doesn't seem to work for Ingres.
Strange so for now create everything using the -u${db_user} option. This is something that
needs to be investigated as it should be possible to have an different owner of the database.

14 years agoCreate user in the right database for Ingres.
Marco van Wieringen [Sat, 3 Apr 2010 20:09:52 +0000 (22:09 +0200)]
Create user in the right database for Ingres.

14 years agoDo all Ingres operations as the user invoking the script just as for all
Marco van Wieringen [Sat, 3 Apr 2010 19:16:50 +0000 (21:16 +0200)]
Do all Ingres operations as the user invoking the script just as for all
the other databases. The grant script will make sure the db_user will have
the proper access rights to the database tables and sequences.

14 years agoFix username argument to sql for Ingres grants.
Marco van Wieringen [Sat, 3 Apr 2010 18:58:07 +0000 (20:58 +0200)]
Fix username argument to sql for Ingres grants.

14 years agoMake the Ingres grant script work.
Marco van Wieringen [Sat, 3 Apr 2010 18:55:13 +0000 (20:55 +0200)]
Make the Ingres grant script work.

14 years agoLets not use PostgreSQL macros for sizes.
Marco van Wieringen [Sat, 3 Apr 2010 14:37:25 +0000 (16:37 +0200)]
Lets not use PostgreSQL macros for sizes.

14 years agoImplement my_ingres_currval function.
Marco van Wieringen [Sat, 3 Apr 2010 14:10:53 +0000 (16:10 +0200)]
Implement my_ingres_currval function.

14 years agoLets fix calling INGfreeDescriptor before INGfreeINGresult as INGfreeINGresult free...
Marco van Wieringen [Fri, 2 Apr 2010 19:50:48 +0000 (21:50 +0200)]
Lets fix calling INGfreeDescriptor before INGfreeINGresult as INGfreeINGresult free the whole INGresult struct
and the descriptor is part of that.

14 years agoLet INGgetisnull return an bool
Marco van Wieringen [Fri, 2 Apr 2010 15:49:39 +0000 (17:49 +0200)]
Let INGgetisnull return an bool

14 years agoFix typo
Marco van Wieringen [Fri, 2 Apr 2010 15:47:25 +0000 (17:47 +0200)]
Fix typo

14 years agoAdd header to both myingres.sc and myingres.sh
Marco van Wieringen [Fri, 2 Apr 2010 15:44:03 +0000 (17:44 +0200)]
Add header to both myingres.sc and myingres.sh
Lets include cats.h as we use the B_DB struct now in myingres.c
Fixed missing argument to INGgetDescriptor
Regenerate myingres.c and myingres.h

14 years agoFix typo
Marco van Wieringen [Fri, 2 Apr 2010 15:37:28 +0000 (17:37 +0200)]
Fix typo

14 years agoRegenerated code for Ingres using esqlcc
Marco van Wieringen [Fri, 2 Apr 2010 08:03:10 +0000 (10:03 +0200)]
Regenerated code for Ingres using esqlcc

14 years agoAdded limit_filter which rewrites queries which use the LIMIT functions into
Marco van Wieringen [Fri, 2 Apr 2010 07:23:10 +0000 (09:23 +0200)]
Added limit_filter which rewrites queries which use the LIMIT functions into
something Ingres can understand. Removed all static functions from the myingres.sh
file as they are no longer an exported interface (we can always put that back when
we have the need to export more functions). Some other rewrites of the code
to make it somewhat cleaner.

14 years agoUse bstrdup and use a goto for one exit from function.
Marco van Wieringen [Thu, 1 Apr 2010 20:27:13 +0000 (22:27 +0200)]
Use bstrdup and use a goto for one exit from function.

14 years agoMake some static functions inline as they only are called once and are there mostly...
Marco van Wieringen [Thu, 1 Apr 2010 18:55:55 +0000 (20:55 +0200)]
Make some static functions inline as they only are called once and are there mostly to describe a functional method.

14 years agoName all function arguments query so we can use stmt as our internal variable everywhere.
Marco van Wieringen [Thu, 1 Apr 2010 18:19:45 +0000 (20:19 +0200)]
Name all function arguments query so we can use stmt as our internal variable everywhere.
Make some functions static which are not referenced anywhere else so we keep our namespace clean.

14 years agoDrop Ingres specific versions of queries with #ifdefs
Marco van Wieringen [Thu, 1 Apr 2010 17:26:33 +0000 (19:26 +0200)]
Drop Ingres specific versions of queries with #ifdefs

14 years agofixed syntax LIMIT/NULL behavior/improved tests
Stefan Reddig [Thu, 1 Apr 2010 16:04:58 +0000 (18:04 +0200)]
fixed syntax LIMIT/NULL behavior/improved tests

14 years agoRemove line added as Eric seems to have done so also.
Marco van Wieringen [Thu, 8 Apr 2010 16:59:22 +0000 (18:59 +0200)]
Remove line added as Eric seems to have done so also.

14 years agoMerge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula...
Marco van Wieringen [Thu, 8 Apr 2010 16:57:46 +0000 (18:57 +0200)]
Merge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0

14 years agoAdded missing grant for postgresql as reported by Martin Simmons
Marco van Wieringen [Thu, 8 Apr 2010 16:56:54 +0000 (18:56 +0200)]
Added missing grant for postgresql as reported by Martin Simmons

14 years agofix grant_postgresql_privileges doesn t grant permissions on jobhisto_jobid_seq
Eric Bollengier [Thu, 8 Apr 2010 16:47:41 +0000 (18:47 +0200)]
fix grant_postgresql_privileges doesn t grant permissions on jobhisto_jobid_seq

14 years agoAdd lock position info to volume manager
Eric Bollengier [Wed, 7 Apr 2010 09:18:53 +0000 (11:18 +0200)]
Add lock position info to volume manager

14 years agoPermits to use lock manager with file/line from outside
Eric Bollengier [Tue, 6 Apr 2010 19:41:31 +0000 (21:41 +0200)]
Permits to use lock manager with file/line from outside

14 years agoFix compiler warning
Kern Sibbald [Mon, 5 Apr 2010 13:44:08 +0000 (15:44 +0200)]
Fix compiler warning

14 years agoRework SD mount.c locking again
Kern Sibbald [Sat, 3 Apr 2010 18:56:42 +0000 (20:56 +0200)]
Rework SD mount.c locking again

14 years agoReplace ASSERT in block.c with fail Job
Kern Sibbald [Sat, 3 Apr 2010 18:55:57 +0000 (20:55 +0200)]
Replace ASSERT in block.c with fail Job

14 years agoUse uint32_t for max_concurrent_jobs
Kern Sibbald [Sat, 3 Apr 2010 18:54:39 +0000 (20:54 +0200)]
Use uint32_t for max_concurrent_jobs

14 years agoChange Ingres drop script so we can run any form of regression and a drop really...
Marco van Wieringen [Wed, 31 Mar 2010 20:02:59 +0000 (22:02 +0200)]
Change Ingres drop script so we can run any form of regression and a drop really drops the content of the database
so we can run make_ingres_tables again.

14 years agoUse file and line for rwlock and lmgr in db_lock()
Eric Bollengier [Mon, 29 Mar 2010 07:52:34 +0000 (09:52 +0200)]
Use file and line for rwlock and lmgr in db_lock()

14 years agoAdd File and Line info to rw_lock for lmgr
Eric Bollengier [Mon, 29 Mar 2010 07:51:16 +0000 (09:51 +0200)]
Add File and Line info to rw_lock for lmgr

14 years agoMerge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula...
Marco van Wieringen [Sat, 27 Mar 2010 22:03:41 +0000 (23:03 +0100)]
Merge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0

14 years agoFix database locking calling db_lock and returning from function without calling...
Marco van Wieringen [Sat, 27 Mar 2010 22:02:17 +0000 (23:02 +0100)]
Fix database locking calling db_lock and returning from function without calling db_unlock.

14 years agoTweak rebuild configure
Kern Sibbald [Sat, 27 Mar 2010 16:25:21 +0000 (17:25 +0100)]
Tweak rebuild configure

14 years agoTweak Ingres ./configure
Kern Sibbald [Sat, 27 Mar 2010 16:23:58 +0000 (17:23 +0100)]
Tweak Ingres ./configure

14 years agoAdd missing db_unlock to bvfs_update_cache.
Marco van Wieringen [Fri, 26 Mar 2010 21:01:58 +0000 (22:01 +0100)]
Add missing db_unlock to bvfs_update_cache.

14 years agoFix array dimensions due to adding Ingres to certain sql arrays.
Marco van Wieringen [Fri, 26 Mar 2010 20:09:36 +0000 (21:09 +0100)]
Fix array dimensions due to adding Ingres to certain sql arrays.

14 years agoUpdate configure
Eric Bollengier [Mon, 22 Mar 2010 15:33:31 +0000 (16:33 +0100)]
Update configure

14 years agoFix #1532 about permission on binaries
Eric Bollengier [Mon, 22 Mar 2010 15:30:19 +0000 (16:30 +0100)]
Fix #1532 about permission on binaries

14 years agobweb: fix fileindex for deleted items
Eric Bollengier [Mon, 15 Mar 2010 08:42:41 +0000 (09:42 +0100)]
bweb: fix fileindex for deleted items

14 years agobweb: add filter on fileindex to bfileview
Eric Bollengier [Sun, 14 Mar 2010 10:12:42 +0000 (11:12 +0100)]
bweb: add filter on fileindex to bfileview

14 years agoAllow users to build bat without static QT if desired.
Scott Barninger [Sun, 14 Mar 2010 18:55:02 +0000 (14:55 -0400)]
Allow users to build bat without static QT if desired.

14 years agoFix for qt mkspecs location on Fedora 12.
Scott Barninger [Sun, 14 Mar 2010 18:13:00 +0000 (14:13 -0400)]
Fix for qt mkspecs location on Fedora 12.

14 years agoRun ingres template code through esqlcc.
Marco van Wieringen [Fri, 12 Mar 2010 20:34:28 +0000 (21:34 +0100)]
Run ingres template code through esqlcc.

14 years agoanother small fix
Stefan Reddig [Fri, 12 Mar 2010 17:25:42 +0000 (18:25 +0100)]
another small fix

14 years agoescaping,typo fix
Stefan Reddig [Fri, 12 Mar 2010 17:14:55 +0000 (18:14 +0100)]
escaping,typo fix

14 years agosyntax fix, test improved, empty results fixed
Stefan Reddig [Fri, 12 Mar 2010 16:29:59 +0000 (17:29 +0100)]
syntax fix, test improved, empty results fixed

14 years agoFix #1527 about deadlock during migration
Eric Bollengier [Fri, 12 Mar 2010 10:23:37 +0000 (11:23 +0100)]
Fix #1527 about deadlock during migration

14 years agoAnother fix for OpenSSLv1
Kern Sibbald [Wed, 10 Mar 2010 14:36:43 +0000 (15:36 +0100)]
Another fix for OpenSSLv1

14 years agoTweak: rebuild configure
Kern Sibbald [Wed, 10 Mar 2010 11:53:22 +0000 (12:53 +0100)]
Tweak: rebuild configure

14 years agoAdd -lrt to Solaris links
Kern Sibbald [Wed, 10 Mar 2010 11:48:32 +0000 (12:48 +0100)]
Add -lrt to Solaris links

14 years agoFix tls.c for OpenSSLv1
Kern Sibbald [Tue, 9 Mar 2010 21:55:09 +0000 (22:55 +0100)]
Fix tls.c for OpenSSLv1

14 years agoFix #1511 when trying to insert more than 50.000 directories in bvfs
Eric Bollengier [Mon, 8 Mar 2010 13:09:21 +0000 (14:09 +0100)]
Fix #1511 when trying to insert more than 50.000 directories in bvfs

14 years agoFix plugin load not to stop if one plugin bad -- pointed out by James
Kern Sibbald [Mon, 8 Mar 2010 12:53:37 +0000 (13:53 +0100)]
Fix plugin load not to stop if one plugin bad -- pointed out by James

14 years agoRemove --without-qwt from configure statement.
Scott Barninger [Sun, 7 Mar 2010 15:33:48 +0000 (10:33 -0500)]
Remove --without-qwt from configure statement.

14 years agoFix bug in bvfs_update function, should work much better now
Eric Bollengier [Sun, 7 Mar 2010 13:53:36 +0000 (14:53 +0100)]
Fix bug in bvfs_update function, should work much better now

14 years agoSecond correct fix to bug #1524 verify fails after adding or removing files
Kern Sibbald [Sat, 6 Mar 2010 16:02:35 +0000 (17:02 +0100)]
Second correct fix to bug #1524 verify fails after adding or removing files

14 years agoFix bug #1524 verify fails after adding or removing files
Kern Sibbald [Sat, 6 Mar 2010 12:54:10 +0000 (13:54 +0100)]
Fix bug #1524 verify fails after adding or removing files

14 years agoFix bug 1523.
Scott Barninger [Sat, 6 Mar 2010 12:31:47 +0000 (07:31 -0500)]
Fix bug 1523.

14 years agoApply fix suggested by Andreas in bug #1502 for mediaview column sort problem
Kern Sibbald [Sat, 6 Mar 2010 10:01:34 +0000 (11:01 +0100)]
Apply fix suggested by Andreas in bug #1502 for mediaview column sort problem

14 years agoMerge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula...
Marco van Wieringen [Sat, 6 Mar 2010 09:39:20 +0000 (10:39 +0100)]
Merge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0

14 years agoLets not generate the ingres code automatically when the .sc or .sh files changes...
Marco van Wieringen [Sat, 6 Mar 2010 09:37:11 +0000 (10:37 +0100)]
Lets not generate the ingres code automatically when the .sc or .sh files changes as it seems
these files get outdated on some systems and then this rule kicks in on systems that don't have
the esqlcc ingres compiler installed.

14 years agoFix CentOS detection in regression get-os script
Frank Sweetser [Thu, 4 Mar 2010 21:03:15 +0000 (22:03 +0100)]
Fix CentOS detection in regression get-os script

14 years agoCreate subroutines to add exclusion for plugins
Kern Sibbald [Fri, 5 Mar 2010 18:21:34 +0000 (19:21 +0100)]
Create subroutines to add exclusion for plugins

14 years agoThis adds sql debugging to these classes that Eric wrote.
Dirk H Bartley [Fri, 5 Mar 2010 04:30:30 +0000 (23:30 -0500)]
This adds sql debugging to these classes that Eric wrote.

14 years agoThis is a 1/2 fix of the issue. It allows for the sorting of the two non graphic...
Dirk H Bartley [Fri, 5 Mar 2010 04:26:41 +0000 (23:26 -0500)]
This is a 1/2 fix of the issue. It allows for the sorting of the two non graphic columns, but still does not allow for sorting the graphic columns. The issue is with last. By setting the sort value, you are setting the value on the last. To experiment with what I mean, use the set background that I have commented out in this commit.

14 years agoMerge branch 'Branch-5.0' of ssh://bacula.git.sourceforge.net/gitroot/bacula/bacula...
Kern Sibbald [Wed, 3 Mar 2010 19:47:27 +0000 (20:47 +0100)]
Merge branch 'Branch-5.0' of ssh://bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0

14 years agoTweak rebuild configure
Kern Sibbald [Wed, 3 Mar 2010 19:46:39 +0000 (20:46 +0100)]
Tweak rebuild configure

14 years agoFix configure.in
Kern Sibbald [Wed, 3 Mar 2010 19:46:20 +0000 (20:46 +0100)]
Fix configure.in

14 years agoLets generate ingres code by calling esqlcc and not esqlc as we want c++ code.
Marco van Wieringen [Wed, 3 Mar 2010 17:37:37 +0000 (18:37 +0100)]
Lets generate ingres code by calling esqlcc and not esqlc as we want c++ code.
Replaced some strncpy by bstrncpy calls.
Add dependency in Makefile of generated code on it source file.

14 years agoTweak rebuild configure
Kern Sibbald [Wed, 3 Mar 2010 13:38:40 +0000 (14:38 +0100)]
Tweak rebuild configure

14 years agoFix OpenSSL 1.x problem in crypto.c on Fedora 12
Kern Sibbald [Wed, 3 Mar 2010 13:34:56 +0000 (14:34 +0100)]
Fix OpenSSL 1.x problem in crypto.c on Fedora 12

14 years agoDisplay AllowCompress warning message only if compression used in FileSet
Eric Bollengier [Wed, 3 Mar 2010 08:11:58 +0000 (09:11 +0100)]
Display AllowCompress warning message only if compression used in FileSet

14 years agoAdded comment on dbi backend needing a recent version of libdbi from CVS as the versi...
Marco van Wieringen [Mon, 1 Mar 2010 19:00:37 +0000 (20:00 +0100)]
Added comment on dbi backend needing a recent version of libdbi from CVS as the version currently
released 0.8.3 wont work for compiling the code.