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

135 Commits

Author SHA1 Message Date
hvlad
a0cee158a0 Make shared memory header same size independent on OS.
Introduce shared memory header version.
2015-01-22 10:35:57 +00:00
dimitr
36af3d8cb2 Cleanup and small refactoring to avoid redundancy. 2014-08-15 14:19:02 +00:00
alexpeshkoff
532181a7f9 Renamed as suggested by Nickolay and Dmitry 2014-07-28 13:01:10 +00:00
alexpeshkoff
4bdc2a3e19 Replaced macro FB_ALIGN with function fbAlign, minor related cleanup 2014-07-24 06:41:38 +00:00
skidder
e2e901939c Fix GCC warnings 2014-07-17 21:17:15 +00:00
skidder
7c743fc291 Fix build warnings 2014-07-17 18:48:46 +00:00
dimitr
9177ed0118 Fixed Windows build. 2013-06-15 06:08:46 +00:00
alexpeshkoff
5780811da4 Fix mac build 2013-06-06 07:32:32 +00:00
alexpeshkoff
c7454a49a5 Work in progress (committed due to SF upgrade). Checked only on SS.
1. Frontported fix for CORE-3935 and CORE-3993.
2. Added debugging support for mutexes and rwlocks in Vulcan style.
Unfortunately after last 'svn up' build asserts in JrdStatement:71.
2012-12-14 17:59:02 +00:00
dimitr
bc1edae943 Added the initialization timestamp to shmem regions. Modified the lock print output to report this timestamp. This is useful to know as all the counters inside the lock table are incremental and a baseline is required to make any time-based estimations. 2012-12-06 08:13:45 +00:00
asfernandes
6a0a6f2d13 Misc. 2012-11-05 01:14:04 +00:00
alexpeshkoff
4ca6e669fe 1. Fixed CORE-3786: Firebird 2.5.1 Hangs on MacOSX 10.7 (Lion) on DB create after reboot.
2. Cleanup: avoid functional style in stuff exception.
2012-11-01 11:40:18 +00:00
dimitr
42a4c93b97 1) Removed the no longer actual "parent lock" concept from both the lock and event managers.
2) Reworked the lock manager synchronization: added the RAII mutex holders and avoided dirty reads for the shared memory.
3) Encapsulated lck_length into the Lock class + small related  refactoring.
4) Front ported recent fixes from the v2.x branches.
5) Misc cleanup.
2012-06-21 15:37:38 +00:00
alexpeshkoff
4e795f4047 Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports. 2012-03-01 08:55:43 +00:00
alexpeshkoff
9dab626467 Frontported fix for CORE-3589: Internal shared resource leak. Make trunk work with SystemV semaphores as shared mutexes/events. 2011-10-13 11:31:15 +00:00
hvlad
87bb408afc Fixed bug CORE-3440 : AV in engine if isc_que_events queued 0 events 2011-04-13 10:38:10 +00:00
alexpeshkoff
5c88e478f6 Use better names for a number of objects according to Vlad's suggestion 2011-04-07 17:16:00 +00:00
alexpeshkoff
d6fcde387b New plugin manager. Use it for all types of plugins. 2011-01-14 17:31:40 +00:00
dimitr
2ed04ec8a9 Fixed CORE-3217: Server crashes inside the lock manager when multiple connections attaching/detaching simultaneously. 2010-11-08 10:21:04 +00:00
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
alexpeshkoff
83d6a2f88c Restored a lot of changes, rolled back by me unintentionally 2010-10-12 11:36:51 +00:00
alexpeshkoff
2dc25a44bb OSRI and new posix build 2010-10-12 08:02:57 +00:00
asfernandes
9bf9ca4ef7 Misc 2010-10-09 01:50:18 +00:00
hvlad
6a37e8c261 Fixed bug CORE-3170 : Engine could enter infinite loop if EVENT's are posted but no subscribers exists 2010-10-08 11:57:57 +00:00
alexpeshkoff
ab75577b9f Fixed some bugs, related with remapping fo events shared memory - thanks to Adriano 2010-06-28 09:38:00 +00:00
alexpeshkoff
6cbefa1f46 Introduced class SharedMemory - base class for everything, using IPC. Related to CORE-3035. 2010-06-25 11:55:11 +00:00
alexpeshkoff
b6c0bbcd41 frontported fix for CORE-3021: Segfault in DEV_BUILD 2010-06-17 07:34:15 +00:00
alexpeshkoff
e5017f1a12 Extend format of firebird configuration file with a set of additional parameters for any parameter.
Use traditional firebird configuration files format in all places (intl, trace, etc.).
Add per-database configuration facility to aliases.conf (currently 15 parameters from firebird.conf).
2010-02-28 18:00:51 +00:00
robocop
00c5d74904 Cleanup. 2009-12-13 13:49:43 +00:00
asfernandes
e99a07bffd Remove usage of tdbb (and tdbb->tdbb_status_vector) in the lock manager 2009-12-06 01:34:57 +00:00
robocop
405d008606 Comments. 2009-11-25 09:34:43 +00:00
robocop
377d98b90f Style and comments. 2009-11-23 07:31:21 +00:00
robocop
55d60892ca Warnings. 2009-11-05 08:29:33 +00:00
asfernandes
f8eb935eb7 Misc 2009-06-06 18:13:57 +00:00
robocop
3cc575b386 Misc. 2009-06-04 13:15:41 +00:00
alexpeshkoff
519372625c Fixed posix build 2009-06-01 11:26:32 +00:00
robocop
ee029d014f One more mutex-related call that was checked in previous versions. 2009-05-30 13:43:58 +00:00
robocop
409048562b Misc and minor correction. 2009-05-30 05:34:45 +00:00
asfernandes
158a05c78d Misc 2009-05-10 15:23:31 +00:00
hvlad
510cb46e97 More fixes for bug CORE-2444 : When more than one attachment register interests in events simultaneously and free space in events table is exhausted engine could hung
a) uncomment remapping code in acquire_shmem(), it used by Classic
b) removed silly code for synchronisation with watcher_thread during remapping. Its not needed and not worked.
c) don't set to zero m_processOffset in ~EventManager() as it could by used by busy watcher_thread delivering events
2009-05-07 13:05:45 +00:00
asfernandes
9178fc4100 Misc 2009-05-01 02:46:18 +00:00
hvlad
967958d303 Fixed bug CORE-2444 : When more than one attachment register interests in events simultaneously and free space in events table is exhausted engine could hung 2009-04-30 07:07:43 +00:00
robocop
2d7cb94844 Unused params
Some BLR checks
2009-04-28 13:08:04 +00:00
alexpeshkoff
cd54e5533e Fixed CORE-2437: Buffer overflow on client when delivering events. 2009-04-17 13:36:34 +00:00
robocop
0bf3d11247 Misc. 2009-04-10 14:28:35 +00:00
alexpeshkoff
c4f37d6f9b No sense keeping old value of shared memory pointer when file is already unmapped - thanks to Claudio 2009-04-10 10:35:45 +00:00
alexpeshkoff
d7bffdb8cd Fixed CORE-2402: bad permissions on temp files, /tmp is polluted with a lot of files 2009-04-08 13:16:26 +00:00
asfernandes
f6f364da49 Trim trailling spaces 2009-04-04 16:39:31 +00:00
robocop
5acf561eb6 Get rid of some typedefs. 2009-04-02 08:53:25 +00:00
alexpeshkoff
9b839ab0d0 Fixed build with not defined HAVE_MMAP 2009-03-11 07:51:45 +00:00