dimitr
3851382b8a
Attempted to fix a lock validation bug which ignored a situation where an incompatible request was changed from LRQ_pending to LRQ_rejected but temporarily remained in the queue.
...
A few other misc changes.
2012-02-13 15:39:51 +00:00
robocop
e2914070b9
Misc.
2012-01-19 04:54:39 +00:00
asfernandes
359f74e73a
Misc.
2011-12-24 18:08:13 +00:00
dimitr
e719c87753
Make locks unconditionally granted in the fair order. The legacy behavior is unsafe in the highly loaded systems.
2011-12-23 17:50:44 +00:00
dimitr
498a61af43
Allowed multiple waiting requests per owner. This resolves various crashes and asserts in the SharedDatabase + SharedCache mode. Page-level deadlocks are still expected, the cache manager needs fixing.
...
Also, made the lock table synchronization a bit stricter. Some refactoring and cleanup was performed as well.
2011-12-23 17:07:33 +00:00
dimitr
18df9a3ab7
Raised the lock table version. Some cleanup.
2011-11-29 08:14:49 +00:00
asfernandes
906ea4729e
Misc.
2011-10-27 01:04:14 +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
fef1f49c94
Shared page cache implementation
2011-05-09 10:15:19 +00:00
hvlad
b9f7479afa
Correction. Thanks to Claudio.
2011-04-15 06:19:32 +00:00
hvlad
13cb0ba84f
Moved assertion out of loop else it could wrongly fire at second execution
2011-04-14 12:12:20 +00:00
asfernandes
7800060e22
Misc
2011-02-04 23:58:10 +00:00
hvlad
12ada43e38
Front ported improvement CORE-3323 : Ability to cancel waiting in lock manager
...
LM part will be changed to not rely on engine internals.
2011-02-02 11:20:52 +00:00
asfernandes
edb9c11063
Correction
2011-02-02 00:57:59 +00:00
hvlad
460bf9731c
Move VALIDATE_LOCK_TABLE from lock.h into lock.cpp : at allows to rebuild just lock.cpp if some need to disable validation of lock table in DEBUG build or enable validation in RELEASE build.
2011-02-01 15:19:01 +00:00
alexpeshkoff
c8bcf1e7d6
warnings
2011-01-21 16:45:15 +00:00
alexpeshkoff
2e6361c58d
misc
2011-01-14 17:01:40 +00:00
dimitr
42f1ef7fd1
Cleanup.
2010-12-18 19:13:33 +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
2dc25a44bb
OSRI and new posix build
2010-10-12 08:02:57 +00:00
robocop
4edd547b17
Misc.
2010-06-30 08:55:16 +00:00
asfernandes
5baf890a21
Misc
2010-06-26 01:18:53 +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
asfernandes
75af3ccf65
Misc/cleanup
2010-06-22 00:53:35 +00:00
alexpeshkoff
b6c0bbcd41
frontported fix for CORE-3021: Segfault in DEV_BUILD
2010-06-17 07:34:15 +00:00
asfernandes
e37d097240
Misc
2010-05-22 02:00:45 +00:00
alexpeshkoff
5d9094a563
Frontported - fixed and improved diagnostics when thread failed to start
2010-05-20 12:07:28 +00:00
robocop
b682a6c39c
Misc.
2010-04-21 10:41:22 +00:00
alexpeshkoff
88b8a40a04
1. Cleaned up most of SUPERSERVER usage.
...
SUPERSERVER has 4 different meanings in our code:
- this is milticlient server (replaced with Config::getMultiClientServer())
- use shared data cache (replaced with Config::getSharedCache())
- use shared metadata cache (replaced with macro SHARED_METADATA_CACHE)
- database are NOT shared between processes (replaced with getSharedDatabase())
2. Use fb_smp_server as both superclassic and classic binary on posix
(xinetd autodecection is done).
3. Small posix build cleanup.
2010-04-15 14:40:27 +00:00
alexpeshkoff
ee2fd4db95
Frontported fix for CORE-2942: Huge (>10Gb) memory consumption by some fb_inet_server processes
2010-03-25 11:02:05 +00:00
asfernandes
77a2706b73
Misc
2010-03-01 02:14:36 +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
dimitr
1936cdc50b
Fixed the interactive lock print header for waits. It was showing non-supported columns.
2009-12-07 16:22:39 +00:00
asfernandes
0797f937a3
Misc
2009-12-07 15:55:40 +00:00
dimitr
abd3a32e0f
Implemented CORE-1906: Allow interactive arguments (seconds and intervals) of fb_lock_print to be 32-bit integers.
2009-12-07 09:47:00 +00:00
robocop
676dc419ed
Avoid warning.
2009-12-06 11:27:42 +00:00
hvlad
9473425cb2
Fix fb_lock_print compilation
2009-12-06 09:36:52 +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
asfernandes
96c367b7bc
Cleanup
2009-12-05 18:53:08 +00:00
asfernandes
90dfb9a411
Misc
2009-09-30 01:10:11 +00:00
robocop
c0d166edf3
Just in case.
2009-09-29 07:33:30 +00:00
alexpeshkoff
ecbf4312a1
Implemented CORE-2644: Make lock table expandable on HPUX
2009-09-28 16:03:44 +00:00
asfernandes
57c4670972
Misc
2009-09-27 00:54:42 +00:00
hvlad
bc7f2e683a
Fixed bug CORE-2640 : A regular deadlock may not be detected by the lock manager under some conditions, thus resulting in a hang
2009-09-25 18:28:22 +00:00
dimitr
5cdc00d947
Corrections per Claudio's request.
2009-08-21 12:04:53 +00:00
robocop
aaf86179d8
Style.
2009-08-21 09:03:10 +00:00
robocop
a301a4daf0
Misc.
2009-08-20 11:46:49 +00:00
asfernandes
398975b940
Misc
2009-08-20 01:32:24 +00:00
dimitr
c16b693999
Added ISC_mutex_fini(), per Claudio's request. Also added ISC_unmap_file().
...
Moved the consistency switch handling into the proper scope. Fixed the memory allocation.
2009-08-19 17:05:07 +00:00
dimitr
28adc69db6
Fixed CORE-2598: fb_lock_print -c[onsistency] switch doesn't work on Windows.
2009-08-19 09:54:52 +00:00
dimitr
b3843ebca4
Cleanup. New nbackup internals don't need this code anymore.
2009-08-19 08:07:18 +00:00
alexpeshkoff
4fe226c84d
Much better fix for CORE-2590, thanks to Dmitry Yemanov
2009-08-19 07:49:37 +00:00
robocop
e71bd1400d
Comments.
2009-08-14 07:25:09 +00:00
robocop
022895cbde
Style.
2009-08-14 05:51:21 +00:00
dimitr
3f6dd2bceb
Easy fix for CORE-2591: High mutex wait ratio and degraded performance after some time of performing normally.
...
Let's field tests to show us whether we would need a more complex solution in order to utilize the shared memory better.
Also, changed the allocation granularity from 4 to 8 bytes, as our most common locks are equal or longer than 8 bytes now.
2009-08-13 14:35:21 +00:00
robocop
7c01c50390
Style.
2009-08-13 14:23:38 +00:00
asfernandes
8a94ecf6bc
Misc
2009-06-29 02:06:00 +00:00
robocop
fc2fcf98da
Style.
2009-06-27 07:00:34 +00:00
robocop
f10e1b72eb
Style.
2009-06-27 06:23:36 +00:00
robocop
2e3ce0d23d
Misc.
2009-06-07 09:49:58 +00:00
robocop
c6106603df
Misc.
2009-06-05 10:24:39 +00:00
robocop
51d3c9b756
Let's use more typical #ifdef to test macros instead o #if.
2009-05-29 11:27:41 +00:00
robocop
66b1227b22
Unused params, some formatting, cleanup.
2009-05-01 17:21:36 +00:00
robocop
2d7cb94844
Unused params
...
Some BLR checks
2009-04-28 13:08:04 +00:00
dimitr
774213d76c
Misc.
2009-04-13 08:24:39 +00:00
asfernandes
d136f88092
Misc
2009-04-11 19:41:01 +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
ab90217604
Better fix for lock files in CORE-2402
2009-04-08 11:30:15 +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
alexpeshkoff
77498cac9b
Fixed some warnings
2009-04-03 10:49:07 +00:00
robocop
5acf561eb6
Get rid of some typedefs.
2009-04-02 08:53:25 +00:00
alexpeshkoff
cc69cf7c6e
Fixed CORE-2354: "fb_lock_print -ia" output is not flushed to a file between iterations
2009-03-10 12:27:48 +00:00
robocop
fab6a3a6cf
Get rid of superflous parentheses.
2009-02-28 11:57:40 +00:00
robocop
d766c4231d
Simplify the call to ISC_event_wait.
2009-02-28 11:47:11 +00:00
dimitr
8576856193
Fixed CORE-2347: "Deadlock. Page type <N> lock conversion denied" error is reported under a concurrent "connect-work-disconnect" kind of load.
2009-02-27 11:33:27 +00:00
asfernandes
d369e26979
1) Fix posix build
...
2) Remove some warnings
2009-02-15 14:45:37 +00:00
dimitr
4c9413f8a9
Minor optimizations.
2009-02-11 08:26:55 +00:00
robocop
096d8e78e6
Trying to be more consistent in the detection of headers (HAVE_* macros).
2009-02-08 11:38:00 +00:00
robocop
24e8b3b942
At least to me, this change is a bug fix.
2009-02-03 10:59:58 +00:00
asfernandes
f4fbdffe07
Misc
2009-01-29 17:44:21 +00:00
dimitr
a5cf1d69bf
Misc. This change follows the solution in unix.cpp.
2009-01-29 17:18:52 +00:00
dimitr
939f8e9724
If we write the dump into the globally accessible directory, let's have its name suggesting it belongs to the Firebird family :-)
2009-01-29 17:05:53 +00:00
alexpeshkoff
31a437f986
Choose better place for lock_table.dump
2009-01-29 16:54:58 +00:00
alexpeshkoff
9843069833
fixed posix build
2009-01-28 14:13:56 +00:00
dimitr
115780718f
Make fb_lock_print compatible with the latest commit. Still requires some polishing.
2009-01-28 13:38:06 +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
6406e45337
Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.)
2009-01-02 06:36:12 +00:00
robocop
d11c994960
Style.
2008-12-31 05:06:08 +00:00
robocop
3b189eaf71
Misc: unused assignment.
2008-12-30 11:27:44 +00:00
robocop
e9be920cc0
Shut up some compiler warnings (some warnings should be enabled again in autoconfig_msvc.h IMHO because hiding our possible mistakes won't help us).
2008-12-30 10:52:52 +00:00
asfernandes
8fbf0e8e8c
Remove trailing spaces (.cpp files)
2008-12-05 01:20:14 +00:00
asfernandes
ff5f8745fb
Remove trailing spaces (.h files)
2008-12-05 00:56:15 +00:00
robocop
d39690fbff
Style (and let lines grow up to 100 columns).
2008-12-04 09:29:16 +00:00
hvlad
111a770839
Release lock manager's mutex in its destructor
2008-11-27 20:20:38 +00:00
alexpeshkoff
d8ea120ded
AIX port - use FB_ prefix for alignment constants
2008-11-05 11:26:23 +00:00
dimitr
1a7abd30d2
Cleanup.
2008-10-24 06:18:26 +00:00
dimitr
73b50d0fe0
Misc.
2008-10-24 04:49:15 +00:00