]> git.sur5r.net Git - bacula/bacula/log
bacula/bacula
13 years agoConvert restore object to use STREAM_RESTORE_OBJECT; cleaner code
Kern Sibbald [Fri, 16 Apr 2010 18:15:15 +0000 (20:15 +0200)]
Convert restore object to use STREAM_RESTORE_OBJECT; cleaner code

13 years agoFor now the Ingres type is not TEXT but VARCHAR(256) so lets define the temporary...
Marco van Wieringen [Fri, 16 Apr 2010 08:39:44 +0000 (10:39 +0200)]
For now the Ingres type is not TEXT but VARCHAR(256) so lets define the temporary table that way.

13 years agoSeperate some basejob queries into sql_cmds.c so the code is cleaner and we can speci...
Marco van Wieringen [Fri, 16 Apr 2010 08:07:09 +0000 (10:07 +0200)]
Seperate some basejob queries into sql_cmds.c so the code is cleaner and we can specify the Ingres specific definition of a temporary table.

13 years agoRemove some strange includes halve way this file which seems to be some copied code...
Marco van Wieringen [Fri, 16 Apr 2010 07:29:45 +0000 (09:29 +0200)]
Remove some strange includes halve way this file which seems to be some copied code from the top of the file.

13 years agoFix RestoreObject make_sqlite3_table.in syntax
Kern Sibbald [Fri, 16 Apr 2010 06:35:09 +0000 (08:35 +0200)]
Fix RestoreObject make_sqlite3_table.in syntax

13 years agoDISTINCT ON postgresql queries won't work on Ingres so try if the MySQL queries do...
Marco van Wieringen [Thu, 15 Apr 2010 20:40:26 +0000 (22:40 +0200)]
DISTINCT ON postgresql queries won't work on Ingres so try if the MySQL queries do any better on Ingres.

13 years agoSmall changes to btraceback script so on solaris we don't get strange errors as PNAME...
Marco van Wieringen [Thu, 15 Apr 2010 18:57:23 +0000 (20:57 +0200)]
Small changes to btraceback script so on solaris we don't get strange errors as PNAME is not a single binary name and that doesn't work to great for doing a gcore.

13 years agoAdd install and uninstall of btraceback.mdb script
Marco van Wieringen [Thu, 15 Apr 2010 18:50:47 +0000 (20:50 +0200)]
Add install and uninstall of btraceback.mdb script

13 years agoRemove bad index tips on mysql creation script
Eric Bollengier [Wed, 14 Apr 2010 09:39:48 +0000 (11:39 +0200)]
Remove bad index tips on mysql creation script

13 years agoApply James' patch with my restore object changes
Kern Sibbald [Wed, 14 Apr 2010 13:24:50 +0000 (15:24 +0200)]
Apply James' patch with my restore object changes

13 years agoTweak comments + indenting
Kern Sibbald [Wed, 14 Apr 2010 11:04:59 +0000 (13:04 +0200)]
Tweak comments + indenting

13 years agoAdd vss_close_backup_session after find_files + add object_name to restore object
Kern Sibbald [Wed, 14 Apr 2010 10:44:43 +0000 (12:44 +0200)]
Add vss_close_backup_session after find_files + add object_name to restore object

13 years agoCleanup restore_object packet
Kern Sibbald [Wed, 14 Apr 2010 08:40:16 +0000 (10:40 +0200)]
Cleanup restore_object packet

13 years agoFix typos.
Marco van Wieringen [Tue, 13 Apr 2010 18:57:42 +0000 (20:57 +0200)]
Fix typos.

13 years agoIngres doesn't understand a query string with ORDER BY LastWritten IS NULL,LastWritte...
Marco van Wieringen [Tue, 13 Apr 2010 17:48:46 +0000 (19:48 +0200)]
Ingres doesn't understand a query string with ORDER BY LastWritten IS NULL,LastWritten DESC,MediaId and we must rewrite it to ORDER BY IFNULL(LastWritten, '') DESC,MediaId which we now do by using an array with the correct order statement per backend in sql_cmds just as some of the other database specific queries.

13 years agoAdd missing break. Pointed out by James
Kern Sibbald [Mon, 12 Apr 2010 12:55:18 +0000 (08:55 -0400)]
Add missing break. Pointed out by James

13 years agoPass restore object to plugin
Kern Sibbald [Sun, 11 Apr 2010 18:59:02 +0000 (20:59 +0200)]
Pass restore object to plugin

13 years agoRestore object now sent to FD
Kern Sibbald [Sun, 11 Apr 2010 15:24:52 +0000 (17:24 +0200)]
Restore object now sent to FD

13 years agoTweak rebuild configure
Kern Sibbald [Sun, 11 Apr 2010 07:38:21 +0000 (09:38 +0200)]
Tweak rebuild configure

13 years agoDrop old bdb catalog scripts
Kern Sibbald [Sun, 11 Apr 2010 07:37:28 +0000 (09:37 +0200)]
Drop old bdb catalog scripts

13 years agoTweak remove trailing space add doxygen doc marks
Kern Sibbald [Sun, 11 Apr 2010 07:20:44 +0000 (09:20 +0200)]
Tweak remove trailing space add doxygen doc marks

13 years agoExtract restore object and send to FD first cut
Kern Sibbald [Sat, 10 Apr 2010 20:45:39 +0000 (22:45 +0200)]
Extract restore object and send to FD first cut

13 years agoAdd Ingres RestoreObject SQL changes
Kern Sibbald [Sat, 10 Apr 2010 20:51:49 +0000 (22:51 +0200)]
Add Ingres RestoreObject SQL changes

13 years agoFix typo in sqlite
Marco van Wieringen [Sat, 10 Apr 2010 11:42:07 +0000 (13:42 +0200)]
Fix typo in sqlite

13 years agoRename sql_insert_id into sql_insert_autokey_record so things are somewhat cleaner...
Marco van Wieringen [Sat, 10 Apr 2010 11:36:25 +0000 (13:36 +0200)]
Rename sql_insert_id into sql_insert_autokey_record so things are somewhat cleaner in name and things don't seem to imply we are just a mysql_insert_id replacement, which we are not.

13 years agoTurn off plugin debug
Kern Sibbald [Fri, 9 Apr 2010 19:52:25 +0000 (21:52 +0200)]
Turn off plugin debug

13 years agoCreate and put data into RestoreObject table
Kern Sibbald [Fri, 9 Apr 2010 19:38:59 +0000 (21:38 +0200)]
Create and put data into RestoreObject table

13 years agoCreate db_create_restore_object_record and code to insert it
Kern Sibbald [Fri, 9 Apr 2010 15:36:39 +0000 (17:36 +0200)]
Create db_create_restore_object_record and code to insert it

13 years agoDrop all Ingres tables with one commit.
Marco van Wieringen [Fri, 9 Apr 2010 12:02:41 +0000 (14:02 +0200)]
Drop all Ingres tables with one commit.

13 years agoFix Win32 build
Kern Sibbald [Fri, 9 Apr 2010 09:28:48 +0000 (11:28 +0200)]
Fix Win32 build

13 years agoTweak update version + date
Kern Sibbald [Fri, 9 Apr 2010 09:19:32 +0000 (11:19 +0200)]
Tweak update version + date

13 years agoSet level for debug code
Kern Sibbald [Fri, 9 Apr 2010 09:17:45 +0000 (11:17 +0200)]
Set level for debug code

13 years agoMake build and install of test-plugin for regress automatic
Kern Sibbald [Thu, 8 Apr 2010 19:09:57 +0000 (21:09 +0200)]
Make build and install of test-plugin for regress automatic

13 years agoTemp remvoe add exclude
Kern Sibbald [Thu, 8 Apr 2010 13:09:35 +0000 (15:09 +0200)]
Temp remvoe add exclude

13 years agoFirst attempt to fix plugin excludes
Kern Sibbald [Wed, 7 Apr 2010 20:11:54 +0000 (22:11 +0200)]
First attempt to fix plugin excludes

13 years agoGet binary objects working
Kern Sibbald [Wed, 7 Apr 2010 19:26:25 +0000 (21:26 +0200)]
Get binary objects working

13 years agoMake test-plugin regression test work
Kern Sibbald [Wed, 7 Apr 2010 19:25:45 +0000 (21:25 +0200)]
Make test-plugin regression test work

13 years agoMake test-plugin-test script
Kern Sibbald [Wed, 7 Apr 2010 13:03:14 +0000 (15:03 +0200)]
Make test-plugin-test script

13 years agoCreate test-plugin-fd
Kern Sibbald [Wed, 7 Apr 2010 12:55:53 +0000 (14:55 +0200)]
Create test-plugin-fd

13 years agoStuff object in extended attributes
Kern Sibbald [Wed, 7 Apr 2010 12:04:53 +0000 (14:04 +0200)]
Stuff object in extended attributes

13 years agoAdd FT_RESTORE and first cut handling it
Kern Sibbald [Wed, 7 Apr 2010 09:32:12 +0000 (11:32 +0200)]
Add FT_RESTORE and first cut handling it

13 years agoTweak fd_plugins.c
Kern Sibbald [Tue, 6 Apr 2010 20:32:52 +0000 (22:32 +0200)]
Tweak fd_plugins.c

13 years agoAdd more doc to example-plugin
Kern Sibbald [Tue, 6 Apr 2010 17:24:09 +0000 (19:24 +0200)]
Add more doc to example-plugin

13 years agoStart RESTORE_OBJECT code
Kern Sibbald [Mon, 5 Apr 2010 20:51:30 +0000 (22:51 +0200)]
Start RESTORE_OBJECT code

13 years agoFixed postgresql grant script which I seem to have updated while I thought I updated...
Marco van Wieringen [Thu, 8 Apr 2010 16:55:04 +0000 (18:55 +0200)]
Fixed postgresql grant script which I seem to have updated while I thought I updated the Ingres one. Also added a missing entry as reported by Martin Simmons.

13 years agoFirst attempt at using mdb on Solaris instead of dbx which isn't standard on most...
Marco van Wieringen [Thu, 8 Apr 2010 16:50:51 +0000 (18:50 +0200)]
First attempt at using mdb on Solaris instead of dbx which isn't standard on most current Solaris versions.

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

13 years agoAdd back something that for whatever reason got lost on last big merge.
Marco van Wieringen [Thu, 8 Apr 2010 05:30:27 +0000 (07:30 +0200)]
Add back something that for whatever reason got lost on last big merge.

13 years agoFix stupid inverted logic
Marco van Wieringen [Wed, 7 Apr 2010 18:08:43 +0000 (20:08 +0200)]
Fix stupid inverted logic

13 years agoMake the batch insert functions return bool instead of int.
Marco van Wieringen [Wed, 7 Apr 2010 14:31:58 +0000 (16:31 +0200)]
Make the batch insert functions return bool instead of int.

13 years agotweak def file
Eric Bollengier [Wed, 7 Apr 2010 09:28:41 +0000 (11:28 +0200)]
tweak def file

13 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

13 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

13 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.

13 years agoChange cryptic aop name
Kern Sibbald [Mon, 5 Apr 2010 20:08:02 +0000 (22:08 +0200)]
Change cryptic aop name

13 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.

13 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.

13 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.

13 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.

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

13 years agoTweak update version+date
Kern Sibbald [Sun, 4 Apr 2010 19:19:54 +0000 (21:19 +0200)]
Tweak update version+date

13 years agoFirst attempt at making things multi-threaded and make it possible to have multiple...
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.

13 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.

13 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.

13 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.

13 years agoFix bscan segfault with new comment field
Eric Bollengier [Sun, 4 Apr 2010 07:38:16 +0000 (09:38 +0200)]
Fix bscan segfault with new comment field

13 years agoregress: add diff.pl tool
Eric Bollengier [Fri, 2 Apr 2010 19:13:00 +0000 (21:13 +0200)]
regress: add diff.pl tool

13 years agoCreating a database as an other user and giving grants doesn't seem to work for Ingre...
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.

13 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.

13 years agoDo all Ingres operations as the user invoking the script just as for all the other...
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.

13 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.

13 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

13 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

13 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.

13 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

13 years agoFix grant script to set grants on correct sequence names and not PostgreSQL names.
Marco van Wieringen [Sat, 3 Apr 2010 14:23:24 +0000 (16:23 +0200)]
Fix grant script to set grants on correct sequence names and not PostgreSQL names.

13 years agoAdd new item to projects
Kern Sibbald [Sat, 3 Apr 2010 09:55:50 +0000 (11:55 +0200)]
Add new item to projects

13 years agoFix bug #1542 File Daemon outputs usage message to stdout instead of stderr
Kern Sibbald [Fri, 2 Apr 2010 21:51:30 +0000 (23:51 +0200)]
Fix bug #1542 File Daemon outputs usage message to stdout instead of stderr

13 years agoApply James' rename events patch
James Harper [Fri, 2 Apr 2010 17:12:48 +0000 (19:12 +0200)]
Apply James' rename events patch

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

13 years agoApply James' plugin patch
James Harper [Fri, 2 Apr 2010 10:51:03 +0000 (12:51 +0200)]
Apply James' plugin patch

13 years agoAdded limit_filter which rewrites queries which use the LIMIT functions into somethin...
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.

13 years agoAdd make_def64
Kern Sibbald [Thu, 1 Apr 2010 19:21:21 +0000 (21:21 +0200)]
Add make_def64

13 years agoFix win32/lib/bacula.defs as pointed out by James
Kern Sibbald [Thu, 1 Apr 2010 19:20:33 +0000 (21:20 +0200)]
Fix win32/lib/bacula.defs as pointed out by James

13 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

13 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

13 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.

13 years agoSimplify db_check_max_connections code and ifdeffing
Kern Sibbald [Wed, 31 Mar 2010 19:00:21 +0000 (21:00 +0200)]
Simplify db_check_max_connections code and ifdeffing

13 years agoFix SQL warning message about concurrency pointed out by Graham
Kern Sibbald [Wed, 31 Mar 2010 17:20:43 +0000 (19:20 +0200)]
Fix SQL warning message about concurrency pointed out by Graham

13 years agoFix compiler warning
Kern Sibbald [Wed, 31 Mar 2010 17:14:08 +0000 (19:14 +0200)]
Fix compiler warning

13 years agoAdd jobs running to status of daemons
Kern Sibbald [Wed, 31 Mar 2010 12:40:58 +0000 (14:40 +0200)]
Add jobs running to status of daemons

13 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()

13 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

13 years agoFix compiler warning.
Marco van Wieringen [Sat, 27 Mar 2010 22:07:09 +0000 (23:07 +0100)]
Fix compiler warning.

13 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.

13 years agoTweak rebuild configure
Kern Sibbald [Sat, 27 Mar 2010 16:26:50 +0000 (17:26 +0100)]
Tweak rebuild configure

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

13 years agoApply James' wide char patch
James Harper [Sat, 27 Mar 2010 12:56:25 +0000 (13:56 +0100)]
Apply James' wide char patch

13 years agoPatch from James
James Harper [Sat, 27 Mar 2010 10:54:26 +0000 (11:54 +0100)]
Patch from James

13 years agoReduce compiler warnings for Win32 plugins + tweak bpipe-fd
Kern Sibbald [Sat, 27 Mar 2010 08:07:27 +0000 (09:07 +0100)]
Reduce compiler warnings for Win32 plugins + tweak bpipe-fd