asfernandes
1c20adb8fc
Misc
2009-04-29 01:52:49 +00:00
robocop
2d7cb94844
Unused params
...
Some BLR checks
2009-04-28 13:08:04 +00:00
robocop
888000e21e
Unused function params.
2009-04-26 10:24:44 +00:00
asfernandes
c986de33a2
Misc
2009-04-22 01:58:40 +00:00
alexpeshkoff
e6d8c3b399
Fixed shared memory access rights issues
2009-04-20 10:34:59 +00:00
alexpeshkoff
ff38566a9d
Enhanced shmget() error reporting
2009-04-16 08:55:12 +00:00
alexpeshkoff
4db90789fe
Fixed error reported by Sergey Mereutsa
2009-04-16 07:52:39 +00:00
asfernandes
d136f88092
Misc
2009-04-11 19:41:01 +00:00
robocop
c13c556b69
Misc.
2009-04-11 05:47:13 +00:00
alexpeshkoff
eb095416cb
Use shared robust mutexes if present.
...
This provides successfull recovery in case when any of firebird processes
died with locked shared mutex (like it was with semaphores SystemV).
2009-04-10 16:53:01 +00:00
alexpeshkoff
58bdb6c241
Cleanup - unsupported port HP10
2009-04-10 15:36:58 +00:00
alexpeshkoff
b305740736
Cleanup unused macro SHMEM_PICKY and related stuff.
...
Fixed code for systems with broken mmap (like HPUX) - avoid shared memory leak.
2009-04-09 16:47:20 +00:00
alexpeshkoff
1e7898ea22
Fix for CORE-2402: bad permissions on temp files, /tmp is polluted with a lot of files
2009-04-08 11:00:58 +00:00
robocop
5acf561eb6
Get rid of some typedefs.
2009-04-02 08:53:25 +00:00
dimitr
c7b95648de
Remove the shmem backing files when they're not used anymore.
2009-04-01 17:35:04 +00:00
aafemt
fcd4ed854b
Fix MinGW build
2009-03-01 13:26:03 +00:00
alexpeshkoff
0346cf6a83
Fixed a number of problems with file ownership and access rights on unix
2009-02-20 16:18:12 +00:00
robocop
7bc5e3cc83
Style.
2009-02-03 11:02:00 +00:00
dimitr
1b3927b026
1) Globally named per-database shmem regions.
...
2) Slightly reworked monitoring internals.
3) Encapsulated the event manager, many internal changes there.
4) Various cleanup, etc.
2009-01-28 12:27:18 +00:00
robocop
3689f15321
Style.
2009-01-20 08:33:59 +00:00
alexpeshkoff
2315131ddd
Avoid races when lock file is opened in different threads of same process
2009-01-13 14:29:07 +00:00
robocop
21bb7f3d20
Style.
2009-01-03 09:14:29 +00:00
robocop
6406e45337
Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.)
2009-01-02 06:36:12 +00:00
alexpeshkoff
bd680bcb47
Solaris port
2008-12-28 15:26:05 +00:00
asfernandes
5311dd5a5e
Misc
2008-12-20 19:57:43 +00:00
robocop
95292d1731
Style.
2008-12-20 08:12:19 +00:00
alexpeshkoff
017a5b6759
HPUX port
2008-12-11 10:59:26 +00:00
robocop
9f52942ab0
Style.
2008-12-02 07:09:49 +00:00
alexpeshkoff
15800b90b9
Frontported fix for CORE-2221: Attach to any DB fails after modification of access rights of security2.fdb
2008-12-01 12:38:55 +00:00
alexpeshkoff
a95079b725
In case of System V semaphores mutex_fini() no-op too
2008-11-28 11:28:12 +00:00
alexpeshkoff
d8f817b2e8
fixed posix build
2008-11-28 11:01:00 +00:00
asfernandes
cbed660d28
Misc
2008-10-28 00:16:20 +00:00
dimitr
eba2fec16c
Misc.
2008-10-24 06:22:55 +00:00
robocop
d50c65a3d9
Close some of my favorite B.O.'s since FB1. To be reviewed by Vlad.
2008-10-21 06:17:03 +00:00
robocop
43ee87b07d
Misc.
2008-10-21 04:25:49 +00:00
asfernandes
ad716e38d9
Misc
2008-10-20 23:46:46 +00:00
dimitr
fa6eaff430
An attempt to fix non-HAVE_MMAP builds. To be refactored by Alex later.
2008-10-20 14:30:20 +00:00
robocop
96b399254e
Misc.
2008-10-16 08:52:33 +00:00
alexpeshkoff
526fd5efee
Added mutex for init-file open in MT world.
...
Fixed pid initialization in event.
2008-10-12 15:03:39 +00:00
asfernandes
843df670d7
Misc
2008-10-11 02:42:01 +00:00
alexpeshkoff
e79f55708d
1. Cleanup - use Firebird::Semaphore instead of local events, removed code
...
related with local events from isc_sync.cpp.
2. Cleanup - removed unused parameter 'number of events' from ISC_event_wait()
and two unused parameters from ISC_event_init().
3. Added SYSV-semaphore based implementation of IPC to isc_sync.cpp.
This should fix CORE-2102: Firebird 2.5 does not build on MacOS (Darwin).
4. Fixed use of posic CS without (x)inetd (i.e. fb_inet_server -s).
5. Fixed (to be reviewed by Dmitry) recovery after some process death in lock manager.
2008-10-10 15:58:05 +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
hvlad
47d76f4143
Allow CS processes to share MMF's again ;)
2008-07-18 12:21:11 +00:00
dimitr
17520b6531
Corrections for the new embedded implementation.
...
Removed some embedded specifics that shouldn't be necessary once the required changes are committed.
Please note that the lock table is still per-instance, so multi-process usage is still unsafe. To be fixed later.
2008-07-14 18:14:30 +00:00
robocop
80ba24a605
Fixing the Win32 build after Alex' changes.
2008-07-06 11:03:09 +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
asfernandes
ce4bf91533
Misc
2008-07-01 01:12:02 +00:00
asfernandes
0d31f7c8b4
Fx Linux build
2008-06-29 15:52:46 +00:00
robocop
8a77b30645
Cleanup: get rid of useless third param in ISC_unmap_file
2008-06-26 11:23:40 +00:00
robocop
d786d35f83
Misc.
2008-06-26 10:43:57 +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
asfernandes
23e4059ce5
Changed attribute name NUMERIC to NUMERIC-SORT - sugested by Claudio
2008-06-25 01:46:50 +00:00
roman-simakov
5dd400c24a
Fixed server hanging while lock table is initializing by one attachment and one previous attachment is disconnecting. Thanks to Nikolay.
2008-06-22 17:31:12 +00:00
skidder
f3bd98b5d8
In firebird 2.1/2.5 fb_lock_print was corrupting (truncating) lock table if run against non-working engine or when -F option is used. This was a regression from Firebird 2.0 for Unix platforms
2008-06-20 03:52:59 +00:00
alexpeshkoff
b9be96d37f
Applied Damyan's patch eliminating some warnings in gcc 4.3
2008-05-28 13:22:26 +00:00
dimitr
5d7d7692a0
Cleanup.
2008-05-21 18:25:55 +00:00
robocop
1cdd4e4126
Clean the sources from VC6 hacks.
2008-05-14 05:17:53 +00:00
robocop
f32d1ac819
Style.
2008-04-21 14:02:47 +00:00
asfernandes
6e59d736df
1) Fix Linux build
...
2) Misc
2008-04-11 01:38:50 +00:00
dimitr
6203ec728f
1) Enabled proper error reporting for unexpected crashes in Classic.
...
2) Attempted to make the async error handling independent from the engine.
Alex, please verify the UNIX part of my changes.
2008-04-10 09:25:48 +00:00
dimitr
afb970dba1
1) Cleanup.
...
2) Catch exceptions in AST routines.
2008-03-12 16:53:57 +00:00
asfernandes
1305691003
Misc
2008-02-28 02:43:23 +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
10d74a7642
Style.
2008-02-13 12:57:04 +00:00
dimitr
34573c2eab
Allow mixed in-process/cross-process events on Windows (like they work in POSIX).
2008-02-11 17:34:58 +00:00
dimitr
14b4079d5c
Make the routine behavior consistent across platforms.
2008-02-04 15:00:26 +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
alexpeshkoff
db16316647
typo
2008-01-17 16:17:31 +00:00
dimitr
e08c5da397
The merge continued.
2008-01-16 09:07:24 +00:00
paulbeach
c823619e92
HPUX Port
2007-11-12 15:18:49 +00:00
dimitr
60711a239e
Let's always use the explicit security attributes.
2007-11-06 12:03:57 +00:00
hvlad
8a4c649ee1
Frontport fix for CORE-1207 : FB embedded requires extra OS privileges
2007-09-16 18:46:50 +00:00
asfernandes
f676883248
Misc
2007-04-21 03:27:36 +00:00
robocop
46df6dd844
Misc.
2007-04-18 11:02:41 +00:00
hvlad
38b20de751
Restored Yaffil's fast mutex code and made thread priority adjustment for classic server
2007-04-17 21:34:22 +00:00
robocop
628a66c360
Casting a spell over the code to allow VC6 compilation.
2007-04-15 11:27:15 +00:00
asfernandes
a4ba5377d8
Misc
2007-04-12 02:27:42 +00:00
hvlad
7213cfa90d
More simple (and stable i hope) implementation of fast mutex for NT platform
2007-04-11 13:24:55 +00:00
aafemt
7cbc856a03
Fix MinGW build
2007-03-13 05:33:02 +00:00
robocop
a9b21b503d
Hack, hack, haaack!
2007-03-01 10:35:11 +00:00
hvlad
60c1b8fa61
Ported implementation of a fast mutex for NT platform from Yaffil
2007-02-27 09:59:24 +00:00
hvlad
54fd5ce4b1
Moved ISC_prefix_object_name into fb_utils::prefix_kernel_object_name to avoid a need to add isc.cpp to all projects which can read config file
2007-02-20 15:39:01 +00:00
hvlad
c0989bce8b
Fixed CORE-1031 : fb_lock_print.exe fails on windows 2003 R2 / XP SP 2
...
and CORE-1133 : XNET (IPC) communication protocol does not work across sessions
2007-02-19 13:05:27 +00:00
robocop
3156083930
Did this IB->FB change separately in case it causes problems.
2007-02-11 09:09:46 +00:00
robocop
6f5dee2b76
Paranoid reminder.
2006-12-22 08:12:30 +00:00
alexpeshkoff
9b10244f53
make CS lock manager semaphores have correct access rights
2006-04-09 15:46:46 +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
hvlad
5c46272df6
Fixed unregistered bug: fb_lock_print fails with message:
...
The requested operation cannot be performed on a file with a user-mapped section open.
2006-02-07 17:21:40 +00:00
robocop
97122ee389
Replace jrd_time.h by our timestamp.h, but I left timestamp.h's #includes commented where it *seemed* not necessary.
2006-02-03 08:39:36 +00:00
alexpeshkoff
e85ee26ade
fixed gcc warning(s)
2006-01-18 10:43:13 +00:00
dimitr
9731811af3
Cleanup.
2005-09-14 18:53:47 +00:00
robocop
479daede8f
Misc.
2004-11-10 04:35:58 +00:00
robocop
e5be73b048
Misc: extra semicolons do not help. :-)
2004-11-07 10:47:20 +00:00
robocop
a6ed2f39bd
Misc.
2004-10-17 03:35:42 +00:00
skidder
645074699e
Improve firebird reliability in failure cases on Windows
2004-10-15 23:07:59 +00:00
skidder
0a7ab26423
Vlad pointed at a problem with my change. Correct it
2004-10-14 22:11:43 +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
372c3de67d
-Replace & remove unneeded threading macro in jrd.h
...
-Move more threading selection to firebird.h
-Replace POSIX_THREADS with USE_POSIX_THREADS
2004-05-22 02:11:56 +00:00