dimitr
7ad1fa43a3
Refactored cache shutdown. This should also fix CORE-4568: Server may crash while disconnecting from the database under load.
2014-10-04 20:10:14 +00:00
hvlad
871830123f
Fixed bug CORE-4565 : GDSCODE can have value = 0 in WHEN-section under some concurrent env., only in SC or CS (not in SS)
2014-10-01 18:17:04 +00:00
alexpeshkoff
f5645faaa0
Fixed windows build
2014-09-30 14:21:44 +00:00
dimitr
b742803ebf
Refactored the shared cache checks. Optimized the shared counter for SS.
2014-09-01 13:19:53 +00:00
dimitr
36af3d8cb2
Cleanup and small refactoring to avoid redundancy.
2014-08-15 14:19:02 +00:00
dimitr
6199136792
Refactored database monitoring, made its handling attachment bound. This should make deadlocks impossible, as well as avoid blocking worker connections while the monitoring request is processed.
2014-07-31 08:56:53 +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
asfernandes
933dd7daef
Warnings.
2014-07-20 02:19:56 +00:00
asfernandes
86487fda92
Misc.
2014-07-20 02:19:06 +00:00
hvlad
bfb1a6a329
Misc
2014-07-18 12:25:06 +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
hvlad
759bf6a592
Front ported fix for bug CORE-4444 : Engine could hung and block all attachments in out of disk space condition during physical backup
2014-06-10 09:31:35 +00:00
alexpeshkoff
6a2016235a
Fixed CORE-4435: After calling release() for attachment to database (instead detach) in embedded mode attachment remains active forever (and some cleanup re. reference counters)
2014-06-10 07:13:34 +00:00
hvlad
6a806677fd
Front ported:
...
1. Improvement CORE-4431 : Reduce contention for allocation table lock while database is in stalled physical backup state
2. Improvement CORE-4432 : Let attachments to not block others when allocation table is read first time
3. On Windows, file can not be deleted while system writes cached data into it, even if file is not open by anyone.
Therefore flush delta file implicitly before closing it.
2014-05-16 12:07:08 +00:00
robocop
836041e871
Misc.
2014-04-04 07:52:41 +00:00
hvlad
092feed137
Fixed warning by PVS-Studio
2014-02-22 10:01:17 +00:00
hvlad
87ffb96a88
Misc.
2014-01-23 11:20:50 +00:00
robocop
2810026363
Misc and warnings.
2013-12-29 00:35:50 +00:00
dimitr
5453b5c394
Attachments marked as shutdown may still be running (before they reach the rescheduling point), so they should not be accounted as already gone. This should also fix CORE-4236: Database shutdown is reported as successfully completed before all active connections are in fact interrupted.
2013-11-13 15:42:48 +00:00
hvlad
34b99e6f3a
Don't force flush for database which creation is not complete.
2013-11-07 10:32:35 +00:00
dimitr
ddcbc3928c
Unconditionally flush the page cache to disk if FLUSH_ALL / FLUSH_FINI modes are used and FW=OFF. This puts a little bit more consistency and favors explicit flushes over implicit ones (e.g. when database is detached and its file is closed).
2013-09-22 15:35:36 +00:00
asfernandes
a66366bc82
Misc.
2013-08-18 18:53:41 +00:00
dimitr
d2fa09942e
Fixed incorrect accounting re. number of fetches.
2013-08-15 11:54:56 +00:00
hvlad
82b574fbfd
Restore scan-resistance feature of the page cache.
...
Refactor common code a bit.
2013-08-08 08:41:12 +00:00
dimitr
f4a856beee
Fixed the page cache stats not being reported (CORE-4159).
2013-08-04 07:31:07 +00:00
asfernandes
b6a4d39596
Misc.
2013-07-06 23:11:13 +00:00
dimitr
1e03bccf84
Misc.
2013-07-03 11:33:59 +00:00
hvlad
de2a34daa3
Fixed my bug introduced when porting page cache on fb3
2013-06-30 14:02:51 +00:00
hvlad
0b5815507c
Implement wait with timeout for page buffer's latches.
...
Note, engine passes timeout as negative seconds, while sync objects works with positive milliseconds.
2013-06-16 21:41:35 +00:00
alexpeshkoff
6f5fedec9a
Fixes related with CORE-3993
2013-04-17 08:04:02 +00:00
dimitr
2fe61fed12
Avoid calling lock_buffer() for the SS setup.
2013-04-07 07:55:40 +00:00
asfernandes
26ab241631
Misc.
2013-03-30 02:31:03 +00:00
hvlad
447f204929
Refactor a bit
2013-03-28 16:52:03 +00:00
hvlad
c131de732c
Cleanup:
...
- removed never used bcb_checkpoint and BDB_checkpoint
- removed conditional compilation for CACHE_WRITER as it is already ruled by flag BCB_cache_writer at almost all places
- added necessary checks for BCB_cache_writer when it was missed
2013-03-23 13:58:41 +00:00
dimitr
47c71f35ed
Completed refactoring of the database shutdown. Fixed a few remaining bugs there. Fixed timeout accounting in SS as well as CORE-3817: Forced database shutdown does not work if non-zero delay was specified.
2013-03-17 12:14:25 +00:00
alexpeshkoff
fc12495d0e
Modified IStatement interface in our API:
...
1. Never allocate empty statement - always use att->prepare() to create statement interface
2. Separated IStatement into 2 parts - statement itself and resultset.
3. Added stmt->openCursor() (and att->openCursor() for unprepared statements) to create IResultSet.
4. Always use IMessageMetadata (former IParametersMetadata) to pass message fromat info from client,
therefore avoiding need in BLR generation in client applications.
2013-02-17 12:08:53 +00:00
asfernandes
d9275d6567
Misc.
2013-01-07 01:15:24 +00:00
dimitr
dcb8c8fd86
Front ported to trunk.
2012-12-21 14:11:45 +00:00
alexpeshkoff
c4ae450de4
Re-read attachment from lock after taking lock in attachment handler
2012-12-20 12:18:52 +00:00
hvlad
8d81d2717d
Add lost PAGE_LOCK_RE_POST call.
2012-12-19 13:51:48 +00:00
asfernandes
9b72aa53bc
Misc.
2012-12-19 00:56:57 +00:00
alexpeshkoff
b3f9759960
Take locks in AST before building tdbb
...
Fixed assertion in CCH_exclusive_attachment
Rolled back my changes required to let cancelOperation() enter engine after shutdown
Better locks' history in SyncObject
2012-12-18 13:54:18 +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
1b5f6cd7b2
Avoid garbage to be written to the shadow's header page. It does not really hurt, but anyway.
2012-12-10 05:50:52 +00:00
hvlad
7012311f4d
Front ported fix for CORE-3034 (Bugcheсk 300 (can't find shared latch))
2012-12-06 14:51:58 +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
alexpeshkoff
64a89b73a0
Improvement CORE-3588: More detail in message "wrong page type"
2012-06-28 11:46:21 +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