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

153 Commits

Author SHA1 Message Date
robocop
f10e1b72eb Style. 2009-06-27 06:23:36 +00:00
robocop
6998bb6dc6 Style. 2009-06-26 10:18:44 +00:00
asfernandes
097b0ca2c2 Misc 2009-06-25 02:29:13 +00:00
robocop
ce9a9baf08 Validations (do not crash). 2009-06-21 11:16:24 +00:00
robocop
6bfacad413 CORE-2509. Took the opportunity to fix several data types. 2009-06-18 12:07:07 +00:00
robocop
05feaac2d9 Frontport fix for CORE-2313. 2009-02-09 12:22:04 +00:00
asfernandes
1105286dee Misc 2009-02-07 15:20:34 +00:00
dimitr
58f814dee0 Fix by Claudio's suggestion. 2009-02-07 11:38:41 +00:00
dimitr
f68301b665 Fixed CORE-2307: Incomplete API information values. 2009-02-06 04:55:53 +00:00
dimitr
0cb4e923cd 1) Cleanup the legacy page op counters (they're redundant now).
2) Return 64-bit values in the information buffer, if required.
2009-02-05 20:12:30 +00:00
asfernandes
ced3b0010e Rollback CORE-2298 2009-01-29 20:36:29 +00:00
asfernandes
9784181a33 Improvement CORE-2298 - Add support for "some_col = ? or ? IS NULL" conditions 2009-01-28 21:37:45 +00:00
robocop
3689f15321 Style. 2009-01-20 08:33:59 +00:00
robocop
95292d1731 Style. 2008-12-20 08:12:19 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
asfernandes
262380af7b Misc 2008-10-16 02:31:49 +00:00
hvlad
5805e37ba4 Implement new feature CORE-2054 : Ability to query contents database file pages via ISC API interface in order to get low-level information for debug and deep analysis purposes 2008-10-15 10:04:07 +00:00
dimitr
e6dc2d8f39 Fixed CORE-2115: Query plan is missing for the long query.
Some cleanup and misc code refactoring.
2008-10-13 07:23:19 +00:00
dimitr
609f466ad3 1) Fixed the layering, as dbb_lock shouldn't belong to PIO.
2) Passed tdbb to some engine routines that were dealing with TLS.
3) Got rid of fil_length and some minor cleanup.
2008-07-09 08:40:31 +00:00
robocop
5777ff76fa More VC6 cleanup. 2008-05-14 13:11:41 +00:00
dimitr
0a9e8c8382 Implemented CORE-1751. The changes include:
1) Make memory counters aggregated.
2) Add attachment pool and allocate appropriate resources out of this pool.
3) Always release attachments explicitly (via destructor).
4) Always delete user requests prior to attachment deletion.
5) Introduce memory usage counters per every monitoring object.
6) Misc refactoring.
Some pieces are still incomplete (although everything basically works), but I'd like to get feedback and testing sooner rather than later.
2008-05-06 08:46:39 +00:00
dimitr
3b843d8aea Make the memory stats SuperClassic friendly. It doesn't make the Classic logic much worse. 2008-02-20 15:29:07 +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
dimitr
e08c5da397 The merge continued. 2008-01-16 09:07:24 +00:00
alexpeshkoff
eea9070f48 Optimized RuntimeStaticstics (and related part of ThreadDb) for performance - some tests run 25faster 2007-12-03 15:46:39 +00:00
alexpeshkoff
a1f3f10493 1. Renamed info parameter.
2. Clearly separated PIP logic and IO, as was requested by Vlad.
2007-11-12 17:24:22 +00:00
asfernandes
1413b21347 Correction 2007-11-10 00:45:03 +00:00
alexpeshkoff
0bbb3fd34c Fix for CORE-1581: Support for doing physical backups when database is located on raw device. 2007-11-09 15:47:48 +00:00
robocop
f44d8fa122 Totally misc. 2007-10-24 06:16:04 +00:00
robocop
b18b0eedec Fix CORE-1447. 2007-09-11 09:19:23 +00:00
alexpeshkoff
e5f1e63836 Fixed CORE-1312: A remote attacker can check, if a file is present in the system, running firebird server 2007-06-08 10:24:57 +00:00
hvlad
42fedd1c0e PIO_act_alloc and PIO_max_alloc moved into PageSpace static metods 2007-05-22 11:52:23 +00:00
alexpeshkoff
6f8fb87780 Front-ported fix for CORE-1240 - any task, using libfbclient, hangs on exit on Darwin/PPC 2007-05-03 13:52:16 +00:00
alexpeshkoff
e2ab4df819 Fixed CORE-787 - disabled non-SYSDBA use of some parts of API 2007-04-19 07:30:00 +00:00
dimitr
05473ab246 Front-ported fix for CORE-943. 2007-03-09 08:55:07 +00:00
hvlad
119a702ec5 Fixed CORE-1127 : Circular index references in corrupt database causes fbserver to loop infinitely.
Thanks to Diane Downie
2007-02-14 08:57:34 +00:00
alexpeshkoff
6073c1fe5b Upon request by Ann, Claudio and Paul 2006-11-17 08:01:27 +00:00
aafemt
e6151fd57f Warnings 2006-09-01 10:51:57 +00:00
dimitr
c68587fe66 1. Virtual tables
2. ODS 11.1, procedure type and relation type
2006-07-17 17:44:18 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
hvlad
f94b8bd641 Merge B1_5_Remote_LazyPort branch into HEAD 2006-05-01 22:23:31 +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
70511c8e2f Correct way to work on big-endian systems 2006-02-09 07:42:23 +00:00
hvlad
e0b8b7abea Implemented new isc_info_creation_date 2006-02-08 21:20:26 +00:00
hvlad
ce530808c6 Implemented SF #1315814 (isc_info_active_transactions_count) and
#1089646 (isc_transaction_info - get isolation level)
2006-02-05 11:36:20 +00:00
hvlad
7c5c5ec818 Don't overwrite dbb_oldest_snapshot and another transaction numbers with
oldest values from header page after user call to isc_info_oldest_snapshot etc
2006-02-03 13:23:58 +00:00
asfernandes
0b1eb55d62 Fixed SF field-test #1249187 - 2.0a3: String literals dest. for large CHAR fields truncated 2005-08-21 15:52:30 +00:00
dimitr
1817e2f0a1 Code simplification. 2005-06-14 05:44:29 +00:00
asfernandes
890494ac7c 1) Fixed SF #1016040 Missing external libraries causes engine exception
2) Use better error messages
2005-06-14 03:16:54 +00:00
asfernandes
4efb74fc51 Removed some compiler messages 2005-06-13 02:12:14 +00:00
robocop
b8d1f00f94 - Corrections and changes to Adriano's commit, subject to his inspection.
- Solved an endless loop with trim and zero-length trim characters, etc.
- Some places are signaled with FB_COMPILER_MESSAGE for prompt attention.
2005-06-06 08:30:03 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
robocop
7084912c3d We are only asking for information, so use const. 2005-01-25 06:40:00 +00:00
skidder
a5f3014470 Let's use out new database ID for isc_info_db_id 2004-11-23 01:12:33 +00:00
dimitr
421f259a4e 1) Locks related cleanup
2) Got rid of TRA_nowait + transaction waits related cleanup
3) Return isc_lock_timeout when it's necessary
TODO: Enhance SET TRANSACTION
2004-10-07 09:15:32 +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
68cb86b274 - Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
9dbe1e64fe -Remove casts unneeded after macro cleaning 2004-05-14 18:43:34 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
robocop
faa41f7b3b Cleanup 2004-03-30 04:10:52 +00:00
robocop
1824343930 Cleanup.
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
skidder
f26d84f76b 1. POSIX build libraries export only public API. 2. Unify exports for PROD_BUILD and DEV_BUILD. 3. Support for context memory pools. 4. Memory manager has lower memory overhead exceptionally on 64 bit targets 2004-03-25 23:12:50 +00:00
alexpeshkoff
1e6c7b18e9 fixed problem with loop in includes 2004-03-22 11:38:23 +00:00
alexpeshkoff
7007d6f2a4 1. introduced Jrd and Ods namespaces
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +00:00
robocop
958f9e31aa Cleanup
A few new[] - delete[] pairs fixed.
2004-03-19 06:14:53 +00:00
robocop
f58c769c37 Cleanup. In geeky words:
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
alexpeshkoff
67f1740fea Various cleanup to make engine compile and work after mentioned earlier changes.
Mainly:
1) MemoryPool* => MemoryPool& in arrays' constructors
2) use Firebird::string to keep strings data
2004-03-14 13:40:14 +00:00
robocop
2ab1f94dd2 Cleanup
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
skidder
b6e5ccd413 Clean up.
1. gds__alloc doesn't throw
2. Add NOMEM handlers to a couple places
3. kill HAVE_*SNPRINTF conditionals
2004-03-09 00:17:07 +00:00
robocop
e6187cecd2 Cleanup
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
robocop
5c3c8abd9a Big cleanup.
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
robocop
663e3b16e7 Cleanup 2004-02-02 11:02:12 +00:00
robocop
2b295a9108 General cleanup. Sorry if I missed some occurrence. 2004-01-28 07:50:41 +00:00
skidder
08eee5ebaa Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static. 2004-01-21 07:18:30 +00:00
robocop
b441cd9aef Cleanup 2004-01-13 09:52:19 +00:00
robocop
06a4df3708 A requiem for JOURNAL and WAL.
Instructions in the list.
2004-01-06 10:33:18 +00:00
robocop
fd93837ec3 Cleanup:
const correctness
BOOLEAN -> bool
Vars in scope
Formatting
JRD_REQ -> jrd_req*
JRD_TRA -> jrd_tra*
JRD_REL -> jrd_rel*
JRD_FLD -> jrd_fld*
event -> event_t, EVENT_T dropped, EVENT should go in the future
Frank's corrections
alice's STR -> alice_str*
remote's STR -> rem_str*
etc.
It creates entities and backups and restores for me. :-)
2004-01-03 10:59:52 +00:00
brodsom
4285bc623c Removing gdsold.h and gds.h 2003-11-08 16:40:17 +00:00
robocop
cda707bd36 const correctness and other related changes 2003-11-01 10:26:43 +00:00
robocop
9ead7a37b4 const correctness
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
brodsom
2aeb693d06 extern cleaning
removing underscores in macros
DLL_EXPORT cleaning
2003-10-03 01:53:34 +00:00
brodsom
49a86dde7d Move physical io to os specific 2003-07-14 10:35:49 +00:00
dimitr
735eff821c Version information cleanup. 2003-06-08 13:13:25 +00:00
alexpeshkoff
4a12651dd1 fix buffer overrun in get_counts() 2003-04-23 07:29:54 +00:00
arnobrinkman
2f62030d2f bugfix: A good bugfix with the database statistics problem which also exists in FB1.0. Thanks to Claudio Valderrama which pointed to problems in the previous commited fix. 2003-03-30 16:55:59 +00:00
arnobrinkman
530bf9060b bugfix on service API, reported by Martijn Tonies in fb-devel.
This bug exists already since FB1.0.
Due bad validate-checking on returned value this even causes a server-crash !!!!
2003-03-20 22:43:40 +00:00
skidder
747bad9b5c Add ability to get a list of currently active transactions via isc_database_info call 2003-02-22 21:54:10 +00:00
dimitr
93246b6445 Fixed linkage issues on win32. 2003-01-27 11:47:04 +00:00
skidder
884c38d6c4 Memory manager changes - added memory usage stats, empty extents are now deallocated 2003-01-18 21:45:24 +00:00
hippoman
7387e6fb70 changed nod,tra,req,trg,rel,ctx,prc struct names to local module names 2002-11-20 23:18:16 +00:00
hippoman
4a76e9e4fe change TRA,REQ,TRG,REL,CTX or PRC, to module local names. 2002-11-17 00:13:59 +00:00
hippoman
25c1dbd367 * Changed NOD struct name to JRD_NOD. 2002-11-11 19:42:47 +00:00
eku
4eaf8c0914 Autoconf cleanup:
o since the define 'VAX' was only used to tell that the byte order is
   LITTLE_ENDIAN (it have nothing else to do with the VAX computer family)
   it can safely replaced with '!WORDS_BIGENDIAN'.
 o check if pointers are 64 bit
 o replaced HAS_64BIT_POINTERS with 'SIZEOF_VOID_P == 8'
2002-09-17 05:58:40 +00:00
dimitr
b9ef9abcc0 Get rid of the legacy GATEWAY (vms/oracle) implementation. 2002-08-22 08:20:27 +00:00
skywalker
350b251820 Changes to get compiling on linux (post fb1 changes). 2002-07-05 15:00:26 +00:00
dimitr
f05d0bbd27 Merging changes from fb1. 2002-07-01 15:46:07 +00:00
alexpeshkoff
0b876469ad fixed bug #545725 - internal connections to database
now reported as user (SQL Server)
2002-06-28 13:58:54 +00:00
dimitr
de656a4487 Server-side database aliases (main changes). 2002-06-04 12:57:05 +00:00
tamlin
80f7fb6dd4 New C++ memory pool 2001-12-24 02:51:06 +00:00