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

222 Commits

Author SHA1 Message Date
dimitr
3cba78804c Fixed the Windows build. 2008-02-29 07:19:39 +00:00
alexpeshkoff
00c63c1f8d 1. Make signals handling in yValve MT safe.
2. Introduce new private API calls, fb__shutdown() and fb__shutdown_callback().
3. Introduce fb_smp_server - binary to run superclassic on posix.
4. Various cleanups.
2008-02-28 18:42:30 +00:00
hvlad
f700c79d81 Move class HugeStaticBuffer into common place, per Claudio request 2008-02-28 09:48:11 +00:00
robocop
2443e89368 const madness. 2008-02-28 09:29:50 +00:00
asfernandes
1305691003 Misc 2008-02-28 02:43:23 +00:00
dimitr
43cdea942f Misc by Dmitry Kovalenko. 2008-02-27 05:56:47 +00:00
dimitr
2e4d036eed Get rid of the Win9x/ME specifics. We don't support them anymore. 2008-02-26 11:03:09 +00:00
robocop
f8007f4071 Misc. 2008-02-24 03:23:40 +00:00
robocop
e9e1ead67a Mostly style, constness, native memcpy and explicit constructors. 2008-02-02 17:04:06 +00:00
asfernandes
6e88cb9598 Misc 2008-02-01 17:33:14 +00:00
alexpeshkoff
a4aac986f8 Make syslog interface as light as possible 2008-01-31 12:05:08 +00:00
dimitr
132176a475 Major synchronization changes. Description of the commit will be posted to fb-devel. 2008-01-26 12:52:51 +00:00
dimitr
214cb37f1b Fixed the win32 build. 2008-01-23 19:03:20 +00:00
asfernandes
aea2bcb354 Misc 2008-01-23 19:03:16 +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
d4d587d155 The merge continued. 2008-01-16 08:16:36 +00:00
hvlad
972926ebf1 Reimplement bugfix for CORE-1468 after engine checkout/checkin logic was moved from CCH to PIO. 2007-09-25 20:15:53 +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
bc5d45e62e The lock_string argument can be const. 2007-09-22 08:34:28 +00:00
hvlad
e369c6cec6 Avoid pissible thread-safety problems. Thanks for tip to Adriano 2007-09-19 11:56:27 +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
paul_reeves
d1f5482882 Be consistent in usage of FB_DEFAULT_INSTANCE. 2007-07-26 09:58:32 +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
hvlad
b9011dc5a3 Fixed bug CORE-1380 : IO errors after changing FW on already attached database 2007-07-25 17:39:01 +00:00
alexpeshkoff
ea8ba3370d Cleaned up mutexes - removed MUTX_T and related macros 2007-06-06 12:37:24 +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
50d6cc88c6 Fixed CORE-1265. 2007-05-17 10:19:53 +00:00
dimitr
bc7c4d0054 Added remote process name to the monitoring data. Applications are allowed to override this value via DPB. 2007-05-16 07:54:33 +00:00
asfernandes
9d0d8bf2db Misc 2007-05-04 01:18:25 +00:00
robocop
52f1b15e0c Misc. 2007-05-02 06:57:18 +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
skidder
04b9ec818b NBAK synchronization rework. This should fix CORE-1151 and other Nbackup stability issues 2007-04-24 14:05:46 +00:00
dimitr
d3ae3fef1c Front-ported fix for CORE-1139. 2007-03-09 07:59:05 +00:00
asfernandes
e2b5f28f5f Misc 2007-02-11 16:57:19 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
robocop
77f0788ba0 Misc. 2007-02-02 10:56:53 +00:00
dimitr
74b56047db Removed my recent fix, as it's wrong. Thanks to Adriano. 2007-01-07 12:47:35 +00:00
dimitr
dc1ea35734 1) Fixed CORE-1079.
2) Cleanup.
2007-01-06 09:11:52 +00:00
asfernandes
f3d25ebd2d Workaround for unkown Windows configuration preventing security to work 2006-12-20 14:43:23 +00:00
dimitr
4d4f2ade7a Misc (64-bit related) 2006-10-29 14:16:29 +00:00
aafemt
c662ea7d9e Warnings 2006-08-17 12:08:49 +00:00
asfernandes
ccbaf55533 Misc 2006-07-28 01:44:36 +00:00
asfernandes
6f84788c72 Include firebird.h in WIN32 files 2006-07-27 12:19:30 +00:00
asfernandes
4f0370df3e Misc 2006-06-03 01:01:51 +00:00
robocop
a5df2e453d I prefer a clearer and specific way to ensure our paths end on a valid directory separator. 2006-06-02 08:46:28 +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
dimitr
a0fc06ac8b Misc. 2006-05-30 13:34:23 +00:00
dimitr
211645e3dc Getting rid of the old allocator routines. 2006-05-23 10:17:00 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
robocop
e77a46b011 Misc. 2006-05-20 03:55:54 +00:00
asfernandes
292ad66e96 Misc 2006-05-20 01:53:51 +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
10cb928ddc More cleanup. 2006-02-23 06:52:25 +00:00
robocop
1f84bac700 Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc. 2006-02-23 05:08:26 +00:00
robocop
be217fd37a Agreed with Dmitry: when we are reporting an error, we don't know how critical it is. No need to copy/clone the string and risk more failures, since we don't need to change it to send it to the operating system. 2005-12-25 04:38:51 +00:00
dimitr
8064de0c8f Fixed win32 implementation of ModuleLoader::Module. 2005-12-20 11:12:27 +00:00
dimitr
9aa74beb6c Fixed broken (again by myself) root lookup for fbclient. 2005-11-29 14:25:34 +00:00
dimitr
57caf0e29a Disable usage of the registry to locate the root. 2005-11-25 09:31:37 +00:00
alexpeshkoff
e832cd2c68 fixed BOFs in PIO functions 2005-09-08 16:41:56 +00:00
dimitr
ec27d021fd Cleanup. 2005-08-31 16:08:14 +00:00
dimitr
0ce1d52f3e Slightly changed (mostly cleaned up and fixed) the SS shutdown mechanics. 2005-06-24 11:14:51 +00:00
hvlad
9cf932f04f Fix wrong error (write failure) detection 2005-02-17 07:28:03 +00:00
alexpeshkoff
55a7f8d45b fixed AV during SS shutdown on NT 2005-01-12 12:19:03 +00:00
robocop
741a1d3d5a Correct the year in Alex' changed licenses. 2005-01-12 04:34:16 +00:00
alexpeshkoff
e2dd2c56cd applied correct license to files, added by me to the project 2005-01-10 18:06:14 +00:00
robocop
24742873ad fb_string.h is moved to common/classes. 2004-12-17 05:41:47 +00:00
robocop
f550ca480f Misc. 2004-12-09 02:53:19 +00:00
robocop
4117b22257 Misc. 2004-12-07 01:40:48 +00:00
robocop
2363c8926c Misc. 2004-12-07 00:43:36 +00:00
robocop
4e3860e04a Misc. 2004-12-06 10:17:00 +00:00
robocop
3ca7f5afb7 Misc. 2004-12-03 06:24:18 +00:00
aafemt
601e894cf6 MinGW windows.h does not include wincrypt.h 2004-12-02 12:15:33 +00:00
robocop
af6a16107a Misc. 2004-11-30 06:18:39 +00:00
robocop
d6535351a2 Misc: style. 2004-11-24 09:22:07 +00:00
robocop
a2a01558f8 We don't need reinterpret_cast from void* 2004-11-16 08:34:35 +00:00
alexpeshkoff
daa112c705 replaced platform-dependent SHA1 with in-tree sha.cpp 2004-11-14 18:09:14 +00:00
alexpeshkoff
19b790777a added related feature - platform-dependent random genearator 2004-11-14 18:03:11 +00:00
robocop
c75595ac55 Misc. 2004-11-08 06:16:19 +00:00
alexpeshkoff
3bd02ee852 security fix
1. Use SHA1 hash instead of ENC_crypt.
2. Disable any remote (non-embedded) access to security.fdb.
3. Use services in gsec and isc_*_user() fucntions.
    In gsec switch -database replaced with -server.
4. Protect from attempts to brut-force accounts/passwords.
2004-11-07 14:50:53 +00:00
alexpeshkoff
73c3fc3e51 1.fixed problem with double-opened databases on LanMan mounted disk.
might cause database corruption.
2.more active use of Firebird::string in isc_file.cpp
2004-11-07 14:43:29 +00:00
robocop
25f115b66e Closing several possible buffer overruns.
Alex is expected to overwrite my changes in isc_file.cpp.
2004-10-08 04:48:02 +00:00
robocop
54b61b6cd5 Totally misc: typo in comment. 2004-10-04 04:43:42 +00:00
alexpeshkoff
079c3f0602 Added firebird.conf parameter UsePriorityScheduler (requested by Nickolay) 2004-09-02 09:00:48 +00:00
alexpeshkoff
a808403767 Partially removed DeadThreadsCollection parameter from firebird.conf.
Concerning complete removal of it I wait for response on my letter to devel list.
2004-09-01 16:11:12 +00:00
alexpeshkoff
c31c9d0b7e fixed problems with thread priorities scheduler 2004-08-16 12:21:46 +00:00
skidder
cd3dc023a1 Keep fb_tls.h low-profile header. Avoid fancy TLS declarations 2004-07-14 21:56:19 +00:00
skidder
593fc58ccb Change license for source files which I wrote 2004-06-30 01:45:18 +00:00
brodsom
1aa7b9452c Looking for extra ; at namespace declaration end 2004-06-13 23:45:02 +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
9affafec6b Finishing the api cleanup 2004-05-29 13:34:54 +00:00
alexpeshkoff
9a34ce553c make bool (isEmpty/hasData) checks for string and stack safe 2004-05-27 16:26:52 +00:00
brodsom
64c1dee04e -Use C++ struct declaration style. 2004-05-24 17:31:47 +00:00
brodsom
f4ca41fa3d -Replace *_thread_data macros with inline functions (jrd step 1) 2004-05-22 14:28:54 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +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
d28feacae9 Correction 2004-05-19 14:59:16 +00:00