8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 09:23:03 +01:00
Commit Graph

182 Commits

Author SHA1 Message Date
alexpeshkoff
d8ea120ded AIX port - use FB_ prefix for alignment constants 2008-11-05 11:26:23 +00:00
asfernandes
acb11513c9 Fixed CORE-2122 - Translation of large text BLOB between UNICODE_FSS (UTF8) and other charsets 2008-10-25 03:44:03 +00:00
dimitr
1a943d1990 Splitted the undo log into two parts: in-memory one for initial undo items (but they're much more dense now) and on-disk (cached up to TempSpaceLimit) one for full record versions (used in update-in-place).
This dramatically reduces the memory usage for bulk updates, thus solving CORE-1575 (serious memory bug on multiple update a table in a single transaction) and CORE-1477 (Avoiding excessive memory consumption by undo-log after series of updates) and predicting out-of-memory conditions that could often lead to record-level corruptions.
2008-10-14 10:07:37 +00:00
asfernandes
dcd70caa31 Visual Studio was complaining about inconsistent line end on this file 2008-09-11 15:41:44 +00:00
robocop
5bc24e78f2 Misc. 2008-08-28 07:14:20 +00:00
alexpeshkoff
13a15d4bfe 1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
asfernandes
5a111d8427 Misc 2008-08-15 02:06:23 +00:00
asfernandes
49c1957156 Fixed CORE-2042 - Connection lost to database when used AUTONOMOUS TRANSACTION 2008-08-14 18:46:22 +00:00
asfernandes
6fb42c33c4 Misc 2008-08-12 00:26:10 +00:00
hvlad
12745b5faa Allow to create temporary blobs on read-only databases.
This also fixed bug CORE-2026 : Problem with a read-only marked database and Firebird 2.1
2008-08-10 10:06:46 +00:00
skidder
b9571d48ee When GFIX is invoked with -MEND option it marks blobs and records with
inconsistencies as damaged (rhd_damaged). When later GBAK is invoked with
-IGNORE option it instructs the engine to skip such marked blobs and records
to be able to create backup of the database.

However, for damaged BLOBs the engine returns inconsistent statistics via
isc_blob_info call making GBAK to fail defeating the purpose of GFIX -MEND.
This problem is present in all Firebird versions.

This patch corrects the above behavior, and makes the engine return damaged
blobs to GBAK with -IGNORE option as consistent zero-length blobs permitting
database backup to succeed.
2008-07-05 19:31:52 +00:00
alexpeshkoff
5ac5869661 CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come. 2008-07-03 12:02:54 +00:00
alexpeshkoff
a2e416210b Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
robocop
89cf9c449c Comment unused fields. 2008-05-08 14:22:09 +00:00
robocop
f8dee95b8c Misc. 2008-04-21 11:39:35 +00:00
alexpeshkoff
ede4082090 Fixed one more problem detected with valgrind.
Also do not write empty blobs to temp file.
2008-04-19 13:02:13 +00:00
alexpeshkoff
3334cf7fe1 Fixed a problem detected by valgrind - uninitialized data in temp file 2008-04-18 16:15:04 +00:00
asfernandes
aab534e66c 1) Misc 2) Remove temp. comment found by Claudio 2008-04-13 14:38:39 +00:00
asfernandes
553da033a1 Changed blob filter functions to throw exceptions instead of return status codes 2008-04-12 04:11:03 +00:00
hvlad
d8dce81b86 Create temporary page space on first reference of temporary page space ID. This allows to use temporary page space for blobs storage even if no GTT was referenced. 2008-04-09 17:21:23 +00:00
asfernandes
21da64cca7 Link blobs of autonomous transaction with the outer transaction - to fix invalid BLOB ID errors. 2008-04-05 19:28:52 +00:00
dimitr
580544fbd7 More changes targeted to a better error diagnostics. 2008-04-04 10:01:06 +00:00
dimitr
f715a3d796 More changes targeted to a better error diagnostics. 2008-04-03 08:10:14 +00:00
dimitr
0e9ae43558 Cleanup/refactoring. 2008-03-19 12:27:52 +00:00
asfernandes
0b6ecafe1b 1) Remove REPLAY_OSRI_API_CALLS_SUBSYSTEM code
2) Remove internal y-valve function INTERNAL_COMPILE_REQUEST
3) Go direct to engine internals from DSQL, without need to exit/enter the attachment lock and check exceptions in status vector
2008-03-07 15:23:21 +00:00
robocop
e9e1ead67a Mostly style, constness, native memcpy and explicit constructors. 2008-02-02 17:04:06 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
dimitr
1fa56f4cd7 The merge is being fixed. 2008-01-16 12:10:43 +00:00
dimitr
d4d587d155 The merge continued. 2008-01-16 08:16:36 +00:00
alexpeshkoff
eea9070f48 Optimized RuntimeStaticstics (and related part of ThreadDb) for performance - some tests run 25faster 2007-12-03 15:46:39 +00:00
paulbeach
7602a29b94 HPUX Port 2007-11-12 14:26:44 +00:00
hvlad
b38d29c22b Fixed bug CORE-1584 : Server crashed or bugcheck when inserting in monitoring tables 2007-11-10 09:46:52 +00:00
alexpeshkoff
c4f6801e34 avoid cast 2007-11-01 17:19:54 +00:00
alexpeshkoff
abd533f545 Fixed CORE-1499: Wrong alignment of data, used in INTL converters 2007-10-05 14:37:33 +00:00
asfernandes
9a1eb5891b Misc 2007-05-23 15:29:53 +00:00
asfernandes
4c97cfc22b Correction 2007-05-23 10:48:00 +00:00
asfernandes
2e663f91b5 Improvement CORE-1280 - Verify well-formedness of text blobs 2007-05-23 02:26:27 +00:00
asfernandes
c67afcb4ee Improvement CORE-1277 - Automatic transliteration of text blobs 2007-05-22 02:14:20 +00:00
hvlad
9cfd2c8207 Fixed CORE-1247 : Blobs garbage collector removed wrong blob if going blob descriptor contains 0:0 (NULL value) but field's NULL flag is not set 2007-05-07 09:39:45 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
alexpeshkoff
f0d465bf34 Fixed gcc warnings, general (un)signed usage cleanup 2007-04-11 09:28:50 +00:00
asfernandes
20299bb856 Misc 2007-03-24 17:44:09 +00:00
asfernandes
032a4b170c Don't leak memory after conversion to blob for store the value in a variable or parameter 2007-03-24 03:00:22 +00:00
dimitr
937333b619 An alternative attempt to fix the alignment issue. We don't need to track the entire blob_id, the record number part is enough. Hence there's no need to read the whole blob_id as int64.
Discussed with Vlad and Alex, tested on SPARC.
2007-03-23 11:25:41 +00:00
asfernandes
23dba8075c Fix problem where a temporary blob could not be returned to the client throwing "invalid BLOB ID" 2007-03-22 01:42:33 +00:00
asfernandes
bf5db7403e Fixed CORE-1169 - Conversion of temporary blobs to the destination blob type when materializing 2007-03-15 02:30:14 +00:00
asfernandes
7c72839ea2 Allow conversions from numbers to blobs 2007-03-09 15:42:17 +00:00
asfernandes
2100a06c84 Make MOV_move know how to move blobs.
This fixes CORE-1147: Blobs are not converted to string in UDF parameters.
2007-03-02 00:46:03 +00:00
asfernandes
2d26b3f5f8 Allow BLOBs in EXECUTE STATEMENT and possibly in others unkown cases 2007-02-27 02:36:20 +00:00
robocop
d009be834f Misc. 2007-02-09 08:34:16 +00:00