8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 22:43:04 +01:00
Commit Graph

223 Commits

Author SHA1 Message Date
alexpeshkoff
b237f4ebd8 Cleanup - avoid use of SUPERCLIENT macro in files, used by utilities
(and in some other places too).
2008-04-08 14:18:24 +00:00
hvlad
ccc38677a9 Make pip_header.reserved works in ODS 11.2 too 2008-04-02 08:46:56 +00:00
asfernandes
b5f62a63b0 Misc 2008-03-30 20:43:36 +00:00
dimitr
b87b5032ef Changes in the TimeStamp class by Dmitry Kovalenko. 2008-03-26 10:21:04 +00:00
asfernandes
262dbadc4f Misc 2008-03-15 17:55:27 +00:00
hvlad
f82d517b09 Fixed bug CORE-1790 : PAG_page_count returns 3 for just created database.
pip->pip_header.reserved is valid only for OSD 11.1, not for 11.2
2008-03-13 19:14:45 +00:00
alexpeshkoff
19b903f0c5 fixed posix build 2008-02-14 11:52:59 +00:00
paulbeach
dddab69190 Minor modifications for MacOS 64bit builds 2008-02-06 14:59:08 +00:00
robocop
4c3381ef6b Style, constness and macro cleanup. 2008-02-03 10:41:44 +00:00
dimitr
a38b327886 Cleanup. Get rid of the JrdMemoryPool. 2008-01-29 10:11:52 +00:00
dimitr
43594ed53a Major synchronization changes. Description of the commit will be posted to fb-devel. 2008-01-26 13:17:19 +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
asfernandes
61b51855a8 Misc 2008-01-20 23:51:21 +00:00
asfernandes
654200fda3 Corrections 2008-01-18 17:39:07 +00:00
paulbeach
79a649377d Welcome to 64bit MacOS builds 2008-01-18 14:12:26 +00:00
asfernandes
ce4bbd30f5 Misc 2008-01-17 14:38:25 +00:00
alexpeshkoff
f24e56e618 Applied Damyan's patch - MIPS linux port 2008-01-17 12:36:08 +00:00
dimitr
6992f2a638 The merge continued. 2008-01-16 09:41:31 +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
hvlad
0182b158d0 Remove not needed code. 2007-11-27 16:21:25 +00:00
asfernandes
54b36766c0 Misc 2007-11-17 00:38:16 +00:00
alexpeshkoff
a1f3f10493 1. Renamed info parameter.
2. Clearly separated PIP logic and IO, as was requested by Vlad.
2007-11-12 17:24:22 +00:00
paulbeach
c823619e92 HPUX Port 2007-11-12 15:18:49 +00:00
hvlad
9f569c1e78 Fixed bug CORE-1577 : Forced Writes setting is not applied to the secondary database files 2007-11-08 15:40:34 +00:00
asfernandes
4161dc725c Misc 2007-10-10 02:06:20 +00:00
robocop
67565fc75b - Changed some lengths to USHORT.
- Took care of some exotic B.O.
- Replaced custom loops by either memcpy or memmove as required.
2007-10-07 02:06:31 +00:00
hvlad
45e0e690a6 Correction in calculations of how many pages needs to be initialized with zeros. Don't initialize more pages than amount of bits left on PIP 2007-10-01 18:22:10 +00:00
dimitr
0e6c8c9abe Moved the engine checkout/checkin logic from CCH to PIO. This allows to avoid hacks like usage of SCH_check_thread_enter(). 2007-09-25 11:47:39 +00:00
robocop
0519215923 Fix CORE-1470. 2007-09-20 10:04:43 +00:00
hvlad
77434f49d6 Fixed compilation on non WIN_NT platforms 2007-09-19 12:08:50 +00:00
asfernandes
96a6ad5863 Misc 2007-09-19 01:46:45 +00:00
hvlad
44c11dfe77 Implement improvement CORE-1469 : Improve performance of database file growth after CORE-1228 was fixed
General and WinNT code parts
2007-09-18 15:26:19 +00:00
hvlad
ebb55209c0 Fixed bug CORE-1468 : Database corruption possible when database file extension and read\write activity is performed simultaneously 2007-09-18 14:50:51 +00:00
asfernandes
6beb5e28bd Misc 2007-07-26 01:23:18 +00:00
hvlad
6cd3900a9f Implement CORE-1381 : Allow Firebird to not use filesystem cache for database files
Implementation in unix.cpp is experimental and commented out (calls of posix_fadvice) until testing
Cleanup in winnt.cpp : removed fil_force_write_desc
2007-07-25 18:44:54 +00:00
dimitr
ca53627351 Const safety. 2007-07-02 10:28:50 +00:00
hvlad
42fedd1c0e PIO_act_alloc and PIO_max_alloc moved into PageSpace static metods 2007-05-22 11:52:23 +00:00
dimitr
8dd6b78150 A better fix for the previous issue. This time it doesn't crash on DROP DATABASE :-) 2007-05-21 07:42:53 +00:00
dimitr
a7d062fe91 We don't need to try to close the file twice. With my recent commit, this causes an AV in PIO_close(). 2007-05-17 18:40:47 +00:00
robocop
0b60796db5 Replace custom loop with memset. 2007-05-16 08:23:41 +00:00
robocop
52f1b15e0c Misc. 2007-05-02 06:57:18 +00:00
hvlad
929bc1eb41 Correct page pre-allocation logic 2007-04-27 08:56:58 +00:00
asfernandes
c722690150 Misc 2007-04-27 02:28:57 +00:00
hvlad
8bca2dc7b0 Track page_inv_page::pip_min when new pages are allocated. This improve performance a bit 2007-04-25 21:14:47 +00:00
hvlad
29ab1ca027 Implement CORE-1229 : Teach Firebird to allocate disk space by more than one page at a time 2007-04-25 21:08:57 +00:00
hvlad
31af74fbf6 Fixed bug CORE-1228 : Database often became corrupted after an out of disk space condition 2007-04-25 20:45:03 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
alexpeshkoff
d108970f7f Patch by Damyan Ivanov for Mipsel 2007-04-01 10:04:28 +00:00
asfernandes
86b0c0e069 Simplification 2007-03-12 00:42:29 +00:00
asfernandes
38237c0e97 Misc 2007-03-11 02:45:50 +00:00
paulbeach
68b261513c Firebird 2.0 MacOS Classic Intel Build 2007-03-09 10:32:58 +00:00
dimitr
05473ab246 Front-ported fix for CORE-943. 2007-03-09 08:55:07 +00:00
dimitr
d3ae3fef1c Front-ported fix for CORE-1139. 2007-03-09 07:59:05 +00:00
asfernandes
f73cf3e501 Initialize random seed when necessary 2007-02-26 01:01:17 +00:00
hvlad
aa062c018c Correct temporary space id generation for classic server 2006-12-17 19:40:41 +00:00
dimitr
0f54e1b4a5 Misc. 2006-12-04 21:29:01 +00:00
alexpeshkoff
075055b384 fixed one more bug in PowerPC patch 2006-10-25 08:59:36 +00:00
alexpeshkoff
c3419fbca7 fixed bug in PowerPC patch, commited by me - thanks to Adriano 2006-10-25 08:28:17 +00:00
alexpeshkoff
182adc6036 applied patch by Damyan Ivanov for PowepPC 2006-10-23 11:48:32 +00:00
robocop
c9e311f45d Misc. 2006-09-05 08:17:26 +00:00
aafemt
e6151fd57f Warnings 2006-09-01 10:51:57 +00:00
asfernandes
ccbaf55533 Misc 2006-07-28 01:44:36 +00:00
dimitr
45c6b39fd1 More patches for Win64 compatibility. 2006-07-27 08:11:51 +00:00
dimitr
c68587fe66 1. Virtual tables
2. ODS 11.1, procedure type and relation type
2006-07-17 17:44:18 +00:00
dimitr
09b0823d0f Fixed bug in the ODS architecture checking logic. 2006-06-01 09:09:15 +00:00
dimitr
7cc12e8489 1) Reworked memory management in SORT. Now we're pools aware there.
2) Reworked error handling in SORT and its callers.
3) Replaced DLS+SortMem with the generic TempSpace class.
4) Replaced GDS temp file management with the TempFile class.
5) Various cleanup.
2006-05-31 08:53:00 +00:00
hvlad
18362ed19e Changes noted by Claudio 2006-05-24 11:38:16 +00:00
asfernandes
7ae984376b Misc 2006-05-23 18:32:50 +00:00
asfernandes
8dfca54dda Complete Dmitry's cleanup of all_proto.h 2006-05-23 12:23:53 +00:00
hvlad
3259922c90 Use PathUtils::dir_sep instead of hardcoded backslashes. Thanks to Adriano 2006-05-23 06:55:26 +00:00
asfernandes
92cd427bbd Misc 2006-05-23 03:37:00 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
robocop
60a96d91a7 Misc. 2006-04-23 08:25:10 +00:00
robocop
d74438baed Fix the discordant data types between flags and the vars used to work with them (really dangerous if the flag is USHORT and you hold it in a UCHAR). Also, get rid of some debris of the uppercased typedefs. 2006-04-19 07:10:53 +00:00
asfernandes
64751392b8 Misc 2006-03-16 02:26:52 +00:00
alexpeshkoff
7f61b486f2 applied patch of Sergey Skvortsov - port for FreeBSD AMD64 2006-03-15 17:32:33 +00:00
hvlad
c3c2cd38af Make code some simpler. Thanks to Claudio 2006-02-05 11:04:44 +00:00
hvlad
7c5c5ec818 Don't overwrite dbb_oldest_snapshot and another transaction numbers with
oldest values from header page after user call to isc_info_oldest_snapshot etc
2006-02-03 13:23:58 +00:00
robocop
2011950972 The files rng.cpp, rng.h, rng_proto.h, bookmark.cpp and bookmark.h belong exclusively to PC_ENGINE, that's obsolete functionality.
Ninth step: while doing cleanup, I discovered some data members that aren't used anymore or that should be inside conditional code. This is the result.
2006-02-03 02:28:58 +00:00
robocop
1e6d89ebfc Comment excessive dependencies on license.h. 2006-01-07 00:31:37 +00:00
alexpeshkoff
e832cd2c68 fixed BOFs in PIO functions 2005-09-08 16:41:56 +00:00
dimitr
6430c7ac10 Moved the ODS checking routine from ods.h to a separate module. 2005-08-16 13:39:26 +00:00
robocop
7b29d802a2 Fix SF Bug #1238104. 2005-07-31 03:45:20 +00:00
dimitr
668907912f Changed the ODS encoding, messaging and protection rules. 2005-06-26 16:11:59 +00:00
robocop
7e5696adcd Misc. 2005-02-14 05:56:04 +00:00
skidder
d10e6fb18a Please GCC 2005-02-09 23:21:29 +00:00
skidder
5abe33fc37 Re-enable the ODS architecture compatibility check disabled by Deej 10 years ago 2005-02-09 23:03:11 +00:00
robocop
af6a16107a Misc. 2004-11-30 06:18:39 +00:00
robocop
1f6c4aa111 Misc. 2004-10-31 09:28:39 +00:00
dimitr
421f259a4e 1) Locks related cleanup
2) Got rid of TRA_nowait + transaction waits related cleanup
3) Return isc_lock_timeout when it's necessary
TODO: Enhance SET TRANSACTION
2004-10-07 09:15:32 +00:00
robocop
31ba754981 After talking to Ann, decided to disable several items:
- obsolete items like WAL and JOURNAL (cleaned in the past)
- crud from attempts never finished like the shared cache manager for Classic
- DSQL nodes that aren't used. This allowed freeing some keywords.
The functionality was disabled by commenting the code. No code has been deleted.
2004-10-03 04:49:04 +00:00
skidder
02a0915156 Teach engine to work with larger record numbers - 64-bit internally, 40-bit externally 2004-09-28 06:28:38 +00:00
skidder
fc0c02d2dc Add notion of ODS type to wrong_ods error message 2004-09-01 01:08:35 +00:00
skidder
e0ac81de4a Introduce concept of ODS type to be able to distinguish between Interbase databases, Firebird databases, databases created by debugging builds of Firebird and private forks 2004-08-23 20:44:49 +00:00
robocop
1bbb740b98 Undo inheritance in ODS page types as requested by Nickolay. Either some macros are too silly or the compiler is limited by the standard here.
Notice I may have missed some file that's not compiled in Win32.
2004-07-10 03:20:33 +00:00
alexpeshkoff
1591a54e5e Thread cleanup:
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
brodsom
f4ca41fa3d -Replace *_thread_data macros with inline functions (jrd step 1) 2004-05-22 14:28:54 +00:00
brodsom
68cb86b274 - Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
2f675febb2 llio is not used actually 2004-05-07 07:47:02 +00:00