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

377 Commits

Author SHA1 Message Date
alexpeshkoff
c4c9daf132 Avoid limits on size of status vector in engine. Ensure that status is always clean on entry to interface methods. 2015-03-20 18:02:30 +00:00
robocop
939feab036 Misc. 2015-03-13 15:26:22 +00:00
hvlad
79b760b4ac Memory leak (CORE-4683) 2015-02-16 13:57:28 +00:00
asfernandes
9ece682387 Misc. 2015-02-14 18:55:00 +00:00
dimitr
11a9b5fc36 Change the status handling a little. 2015-02-11 09:20:51 +00:00
hvlad
a07e2ff547 Frontportred fix for bug CORE-2848 : "lock conversion denied" or "lock denied" error 2015-01-24 11:49:18 +00:00
hvlad
8216554413 Fixed my error at patch for CORE-4565. It was the reason of false "lock denied" errors. 2015-01-21 09:18:18 +00:00
hvlad
f8969d22ca Improved page cache performance a bit.
The case when page buffer is evicted and re-assigned to another page.
2014-10-21 14:53:23 +00:00
alexpeshkoff
1f83c3b1ae Fixed CORE-4582: Within linger period one can not change some database properties 2014-10-16 11:31:48 +00:00
hvlad
c3a181148a Fixed bug CORE-4576 : Cache Writer thread could not start 2014-10-10 10:12:23 +00:00
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