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

737 Commits

Author SHA1 Message Date
kkuznetsov
ef47186fab Some comments added 2005-08-18 09:33:25 +00:00
robocop
4399b15b3d const_iterator
The code in intlmanager originally confused me.
2005-06-11 00:13:30 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
alexpeshkoff
23aa3b9fef misc 2005-05-18 11:06:15 +00:00
robocop
e2b16d669d Get rid of redundant definition: already in constants.h. 2005-05-18 07:29:13 +00:00
alexpeshkoff
c03d2241c5 fixed issues, reported by Claudio 2005-05-17 18:20:07 +00:00
alexpeshkoff
a9c754f16f fixed bug noticed by Vlad 2005-05-14 05:21:51 +00:00
alexpeshkoff
e0b828a3b1 Added class to handle metadata names 2005-05-12 18:26:13 +00:00
alexpeshkoff
c6fb984d13 make Firebird::vector const-friendly 2005-05-12 18:24:05 +00:00
robocop
f3d1c47f99 Misc. 2005-04-18 03:36:03 +00:00
robocop
b5ec6d966c Be in sync with our header protection convention. 2005-04-18 03:26:45 +00:00
kkuznetsov
438005440f Allow setting TCP_NODELAY socket option in Classic Server
and make if default true on both arhitecture.
2005-04-04 12:54:34 +00:00
dimitr
dd1ef4e306 no message 2005-02-20 08:35:35 +00:00
dimitr
02f626c62c Fixed bug with WEEKDAY. 2005-02-19 10:37:35 +00:00
kkuznetsov
f922e000b7 Comments cleanup 2005-02-17 12:42:49 +00:00
dimitr
c00ffe7ec0 Fixed the default memory management in fbclient.
Avoid crashing the server when fbclient is used in its address space.
2005-02-16 08:46:48 +00:00
alexpeshkoff
655e961b67 add constness 2005-02-13 18:03:40 +00:00
alexpeshkoff
63256e3ae0 misc 2005-02-02 11:22:06 +00:00
alexpeshkoff
a9ce92244e license + misc 2005-01-30 11:44:59 +00:00
alexpeshkoff
381c1a7ef3 added feature (requested by Dmitry) - first path in ExternalFilesAccess
is used as default when external file is to be initially created
2005-01-26 18:02:30 +00:00
dimitr
03cfc7c237 Changes and cleanup regarding XNET vs old-style IPC. 2005-01-16 12:35:27 +00:00
alexpeshkoff
19411789b3 fixed multi-threaded client and Win32 embedded problems
after introducing context memory pools
2005-01-14 09:56:38 +00:00
robocop
3c862d57a3 Misc. 2005-01-12 08:30:24 +00:00
robocop
741a1d3d5a Correct the year in Alex' changed licenses. 2005-01-12 04:34:16 +00:00
robocop
fccc202ece Change the license.
Also, these two files were done by Dmitry Yemanov, not Mark, according to viewCVS.
2005-01-12 04:24:53 +00:00
alexpeshkoff
e2dd2c56cd applied correct license to files, added by me to the project 2005-01-10 18:06:14 +00:00
robocop
4012106884 Misc. 2004-12-25 09:44:03 +00:00
kkuznetsov
af0ab61ae2 Some things is moved from R1.5.1.
Starting separating of defines accoding
SOLARIS -- any threading modes
SOLARIS_MT - solaris with Sun threading model
current nothing - solaris with posix threading model
2004-12-24 09:35:48 +00:00
robocop
d65307b497 Style. 2004-12-24 08:52:39 +00:00
robocop
4d41decc4f Misc. 2004-12-22 08:49:26 +00:00
alexpeshkoff
e7d4b79b12 use context pool in AutoStorage class 2004-12-17 11:13:24 +00:00
robocop
24742873ad fb_string.h is moved to common/classes. 2004-12-17 05:41:47 +00:00
robocop
de3902e4b4 Misc. 2004-12-17 05:40:10 +00:00
alexpeshkoff
e5234b68a3 fixed bug, noticed by Adriano dos Santos Fernandes 2004-12-13 15:49:28 +00:00
alexpeshkoff
4c30c0a47d test for Firebird::string 2004-12-13 12:05:29 +00:00
robocop
b59cf9c750 I can revert the constness if it becomes too restrictive in the future. 2004-12-12 06:50:10 +00:00
robocop
e5347aae55 Misc. 2004-12-12 01:55:21 +00:00
robocop
fddf92395e Misc. 2004-12-10 22:54:16 +00:00
alexpeshkoff
387e678cca applied Clumplet* classes to dpb where possible 2004-12-09 19:19:47 +00:00
robocop
3ca7f5afb7 Misc. 2004-12-03 06:24:18 +00:00
aafemt
62069daa7a Shut up warning 2004-12-02 12:11:48 +00:00
robocop
af6a16107a Misc. 2004-11-30 06:18:39 +00:00
alexpeshkoff
d0ebde70a8 make SortedObjectsArray easier to use in simple cases 2004-11-29 10:07:43 +00:00
robocop
9ee8334926 "elem" is size_t, assert on it. 2004-11-29 09:59:19 +00:00
skidder
1df8ec2f9e Fix GCC build curing MSVC build at the same time 2004-11-29 01:08:38 +00:00
robocop
6af639b4e3 Corrections. 2004-11-27 08:13:39 +00:00
robocop
9293a840da Extra assertion and acknowledge "elem" is size_t. 2004-11-27 03:31:39 +00:00
robocop
88d932d394 Formatting and a couple of assertions. 2004-11-27 03:30:42 +00:00
robocop
84f8c37dba const. 2004-11-27 03:30:09 +00:00
alexpeshkoff
2841466d4d make it compile with VC6 2004-11-25 16:10:38 +00:00
skidder
c4ed612128 Fix POSIX build 2004-11-25 02:28:17 +00:00
skidder
016fcdcce5 Implement Claudio suggestion regarding clean generic map class 2004-11-24 20:38:31 +00:00
alexpeshkoff
bdd3b32278 use ClumpletReader to parse dpb options 2004-11-24 18:26:24 +00:00
robocop
d6535351a2 Misc: style. 2004-11-24 09:22:07 +00:00
robocop
ab23729381 Misc. 2004-11-23 04:05:49 +00:00
skidder
51e43de012 Fix POSIX build warning 2004-11-22 22:31:31 +00:00
skidder
9507cf9714 Context variables support 2004-11-22 20:22:03 +00:00
robocop
eb99bbcccf Poor man's version of the old gds_alloc_report. 2004-11-17 08:56:07 +00:00
robocop
290ec7f231 Misc. 2004-11-16 08:35:59 +00:00
robocop
a0fa398757 Misc: where did those phantom spaces come from? 2004-11-16 06:22:12 +00:00
robocop
f85e3e2369 Totally misc. 2004-11-16 05:03:43 +00:00
robocop
642da74b93 Totally misc: comment. 2004-11-16 05:02:02 +00:00
alexpeshkoff
f7d554d960 1. const-correctness of Clumplet classes
2. changed datatype to store ClumpletWriter buffer to avoid a lot of casts
3. added methods to support PathName operations
2004-11-15 16:34:47 +00:00
skidder
2096e1029e Minor correction of previous commit 2004-11-14 20:59:14 +00:00
skidder
8d71db462e Add time routines to TimeStamp class 2004-11-14 20:49:47 +00:00
alexpeshkoff
ea9e900ab3 cleanup of methods, storing data in plain char* 2004-11-14 18:05:13 +00:00
skidder
dde4d7b557 Commit change adding method used by ClumpletReader/ClumpletWriter 2004-11-11 21:46:25 +00:00
hvlad
aba34753cb Add config file parameter for the garbage collection policy 2004-11-09 12:59:37 +00:00
robocop
8dd94e9d5b Misc and mark suspicious place(s). 2004-11-08 02:57:23 +00:00
alexpeshkoff
687c93284e security fix
added LegacyHash parameter to firebird.conf - setting to true
makes it possible to check for old (crypt) hashes in security.fdb
2004-11-07 14:12:15 +00:00
robocop
0c1c5428f0 Misc: extra semicolons do not help. :-) 2004-11-07 10:52:36 +00:00
robocop
77571e4c69 1.- Extra unneeded semicolons are being garbage collected.
2.- Style: sepate params by space, type for<space>(, etc.
2004-11-06 07:20:44 +00:00
skidder
d55bbe7c29 Fix posix build after my timestamp change 2004-11-04 19:38:24 +00:00
skidder
933063c7ce Slightly adjust Dmitry's Firebird::TimeStamp class to make it more useful, change is coordiated with Dmitry. Use thread-safe localtime_r routine when it is available 2004-11-04 19:14:20 +00:00
robocop
d9c3c78abd Be explicit. 2004-11-04 05:26:56 +00:00
dimitr
56a15c33dc Improved TimeStamp slightly to suit non-engine needs. 2004-11-03 17:28:05 +00:00
skidder
54d28cbfb3 Bunch of fixes in clumplet readers and writers 2004-11-03 08:38:09 +00:00
skidder
57b1dbb5a5 Remove comment which is no longer pertinent 2004-11-03 08:36:14 +00:00
skidder
18538667a6 Fix warning 2004-11-02 06:43:56 +00:00
dimitr
5040f83365 Changed TimeStamp class a bit, as suggested by Claudio. 2004-11-01 08:29:16 +00:00
dimitr
75593c7de4 Removed unused code. 2004-10-31 05:40:38 +00:00
dimitr
6f3700fc6c Replaced non-centralized datetime management with a new class. 2004-10-30 19:28:56 +00:00
robocop
9fb4a9136a Misc. 2004-10-30 06:03:06 +00:00
skidder
0c1785e708 Kill a few redundant const qualifiers 2004-10-29 17:51:27 +00:00
skidder
d65eac7698 Go back to passing pointers to impure areas instead of direct bitmap pointers. The approach I tried doesn't work with nod_bit_in correctly and doesn't seem pretty to me anymore 2004-10-28 23:26:16 +00:00
aafemt
1155b1906d Variable shadowing 2004-10-27 09:28:26 +00:00
skidder
b29f8356c5 Implement routines for convenient dumping of memory pools under debugger 2004-10-25 05:14:12 +00:00
skidder
42defc6a3d Default to BugcheckAbort=1 in DEV_BUILD 2004-10-24 02:47:05 +00:00
skidder
b47700523d Little corrections in clumplet handler classes 2004-10-23 01:21:11 +00:00
skidder
5fc3d1bc31 Classes for secure manipulations with clumplet structures 2004-10-22 06:24:40 +00:00
robocop
7e97c27e75 Some folks couldn't compile... 2004-10-15 05:50:32 +00:00
robocop
efefff581e Change Pascal AND to C++ &&
Thanks to Marlena Miller that couldn't compile.
2004-10-11 10:00:37 +00:00
skidder
71c2c14bb9 Implement vprintf routine in Firebird::string class 2004-10-09 00:43:04 +00:00
skidder
632fd3c4b9 Correct Firebird::string::printf behavior for very long strings 2004-10-08 22:52:08 +00:00
robocop
373b5e27de Fixed a bug in fatal_exception's constructor that causes fill_status to write garbage in the status vector.
Overload what() for the same class. It helps gpre to quit on failures (gpre changes still not posted).
2004-10-07 09:27:34 +00:00
robocop
ac4aa367b9 recalculate_length(),
copy_to(), safe copy to a char array,
constness,
style.
2004-10-07 08:35:25 +00:00
hvlad
4591207542 Correct on-stack constructor for SparseBitmap (discussed with Nickolay) 2004-10-05 07:03:26 +00:00
robocop
ed17cfafbf Style:
if<space>(
for<space>(
switch<space>(
while<space>(
2004-10-04 08:15:00 +00:00
robocop
bdf5dea379 Close vulnerability #3 in gds__interprete's new version.
Traditional sprintf could write past the end of buffer.
2004-10-04 04:44:52 +00:00
robocop
f67540a4a5 Member functions that don't change anything are marked const. 2004-10-02 09:33:06 +00:00
robocop
90dab6af2e Prevent buffer overrun (equivalent to evl.cpp's concatenate). 2004-10-02 09:31:12 +00:00
hvlad
d281601365 Make new class SparseBitmap compile by MSVC6 2004-10-01 06:27:57 +00:00
arnobrinkman
d9c6c3ebab fix bug with singular bitmaps, in consideration with Nickolay 2004-09-29 21:58:58 +00:00
skidder
85297ac45a Fix MSVC7 builds 2004-09-28 21:50:10 +00:00
skidder
02a0915156 Teach engine to work with larger record numbers - 64-bit internally, 40-bit externally 2004-09-28 06:28:38 +00:00
robocop
d61df6f212 Introducing our snprintf to avoid writing
SNPRINTF(...);
buffer[sizeof(buffer) - 1] = 0;
Makes a provision to detect overruns in systems that lack the snprintf familty.
Comments welcome
2004-09-26 11:17:39 +00:00
robocop
821a83eaba Take advantage of the full range in name_length(), in case we need it.
In most platforms, int <==> ptrdiff_t
2004-09-26 07:38:34 +00:00
robocop
840bf14b36 If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes). 2004-09-26 01:49:52 +00:00
robocop
4eefd6d63e Totally misc 2004-09-24 06:40:13 +00:00
alexpeshkoff
07cc528371 Fixed a number of errors in Firebird::string 2004-09-23 07:03:14 +00:00
robocop
c3660458b4 Added a comment, in case it's not obvious 2004-09-20 08:37:11 +00:00
robocop
5dce94f59f Collapsed an example of Borland's advanced copy/paste technique that repeats routines in different files into a single function. 2004-09-15 03:49:52 +00:00
robocop
9a34d7bb91 Misc: fix typo in a comment 2004-09-07 08:35:29 +00:00
alexpeshkoff
079c3f0602 Added firebird.conf parameter UsePriorityScheduler (requested by Nickolay) 2004-09-02 09:00:48 +00:00
alexpeshkoff
a808403767 Partially removed DeadThreadsCollection parameter from firebird.conf.
Concerning complete removal of it I wait for response on my letter to devel list.
2004-09-01 16:11:12 +00:00
skidder
a28561fcf5 Look up Valgrind header in more appropriate place 2004-09-01 09:36:44 +00:00
alexpeshkoff
c3db4aaa97 added (and used in sources) template to change and restore default pool 2004-08-30 18:11:08 +00:00
skidder
7a85d40428 Fix typo and small bug in memory manager test code 2004-08-28 23:14:46 +00:00
skidder
674e533b80 Update memory manager tests 2004-08-28 05:19:23 +00:00
skidder
6c9402b881 fix handling of zero-length allocations, fix rare memory management error, add quick pool verification logic 2004-08-28 05:18:42 +00:00
skidder
b8601cce19 quick pool verification logic 2004-08-28 05:15:02 +00:00
skidder
f13f54c966 Some Linux targets may miss support for fancy rwlock options 2004-08-28 02:51:11 +00:00
robocop
3a45a04ea7 MSVC6 doesn't keep variables in a for() only in that scope. This standard construction is rejected:
for (int i = ...);
for (int i = ...);
Put the variable again before the loops to be able to compile.
2004-08-27 04:46:01 +00:00
brodsom
46aa03e06e Fix signed/unsigned comparisons 2004-08-26 18:28:12 +00:00
robocop
305b9088f4 misc 2004-08-26 11:04:14 +00:00
skidder
035ac89d7c Clarify comment and update assertion check 2004-08-25 03:09:57 +00:00
brodsom
57528f8bc2 Avoid variable shadowing 2004-08-24 23:11:02 +00:00
robocop
24aab1bd43 Renamed ptr_block to ptrToBLock and block_ptr to blockToPtr for better self-documenting code as agreed privately. No functional change. 2004-08-24 05:16:01 +00:00
skidder
933488964a Update memory manager tests 2004-08-22 21:31:19 +00:00
skidder
a1371e4ffa Slightly streamline logic of allocation critical path. Correct 2 memory manager bugs added during last optimization attempt. We are now ~40faster than malloc from GLIBC 2.3 2004-08-22 21:28:19 +00:00
skidder
3b3bd79ddb Use fine-tuned tree page sizes by default. This increases tree performance by ~7 We are now 1.5 times faster than GNU STL tree 2004-08-22 21:09:13 +00:00
robocop
6be277355f Misc: formatting 2004-08-21 09:18:24 +00:00
skidder
706e941871 Old Valgrind stacktraces need to be cleaned up on pool destruction 2004-08-18 23:39:43 +00:00
alexpeshkoff
45e2d3556f removed a lot of posix warnings after changing int to size_t in vector.h 2004-08-16 12:25:39 +00:00
alexpeshkoff
4568a1c968 replaced exit() with throw fatal_exception - thanks to Jim 2004-08-16 12:24:30 +00:00
skidder
158cc8b30b Optimize memory manager a little bit 2004-08-10 04:10:47 +00:00
skidder
0374e1a9fd Fix memory manager to allow reliable detection of references to memory from deleted pools under Valgrind. Make memory usage statistics more accurate both in Valgrind and general cases. Adjust pool dumping routine to be aware of delayed free blocks 2004-08-09 01:24:54 +00:00
skidder
b980507ad2 Valgrind support 2004-07-30 22:38:08 +00:00
skidder
6129db2caa Correct a couple errors I introduced during int->size_t transition for array indexing 2004-07-29 17:44:03 +00:00
robocop
a5ceabacc8 Style and simplification 2004-07-22 07:17:58 +00:00
skidder
04076ea1ff size_t is more correct type for container sizes and indices 2004-07-17 00:13:34 +00:00
skidder
5494b34caa size_t is more correct type for container sizes and indices 2004-07-16 23:06:31 +00:00
skidder
d749b61c21 Let our dynamic libraries work 2004-07-14 21:49:03 +00:00
robocop
22d2a488d1 Preach with the example and change the license to the IDPL 2004-07-10 03:17:02 +00:00
skidder
32baa87086 Change license for source files which I wrote 2004-06-30 01:26:40 +00:00
skidder
3b062b90b6 Little string class cleanups 2004-06-29 23:31:12 +00:00
skidder
c8d4985a25 Add forgotten length checks 2004-06-29 12:36:42 +00:00
robocop
949830d0c6 1.- const correctness
2.- style
3.- Try to fix the mess caused by different data types used to represent bifields of SCL_ constants defined in scl.h,
first round. No circular dependencies found through MSVC. Still pending dyn* and grant.epp files.
2004-06-29 04:37:59 +00:00
skidder
ad6ffddae2 Minor bugfixing/cleanup of string class. I hope this change doesn't break anything, but Alex should look at it 2004-06-26 22:23:19 +00:00
skidder
f4e7ebdd3b Implement rudimentary framework to track lifetimes of active BLOBs.
This solves the following issues:
1) Outrageous memory consumption when blobs are converted from strings during request processing
2) Materialization doesn't cause invalidation of BLOB IDs too early.
Original behaviour caused errors with updatable views or procedures receiving BLOB arguments.
2004-06-22 20:13:10 +00:00
skidder
323847148c Const-correctness 2004-06-21 22:45:17 +00:00
skidder
de7fc77158 Fix bug with wrong output when printing out used only blocks from memory pool 2004-06-21 22:17:51 +00:00
robocop
320fe78b42 Misc changes 2004-06-21 02:48:47 +00:00
kkuznetsov
1cbc0a3b9b Solaris theading portion of TlsValue 2004-06-16 12:33:13 +00:00
skidder
3ad92020ae Slightly refine BeePlusTree accessor semantics 2004-06-13 23:49:28 +00:00
brodsom
1aa7b9452c Looking for extra ; at namespace declaration end 2004-06-13 23:45:02 +00:00
skidder
eb468e9a4d Bring module up to date 2004-06-13 18:30:20 +00:00
brodsom
bf8f359a13 Remove wrong semicolon 2004-06-13 03:09:29 +00:00
brodsom
f5c80410d2 -Correction for gcc 3.4 2004-06-13 03:08:13 +00:00
kkuznetsov
a0cd7b2449 hCVS: ----------------------------------------------------------------------
Solaris portion of thd.cpp
2004-06-11 14:23:30 +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
alexpeshkoff
d28b38c01e explicit constructor for lock guard 2004-06-08 06:51:13 +00:00
robocop
1426fd894b We use DIRECTORY_FILENAME_H for protecting headers 2004-05-29 04:34:31 +00:00
alexpeshkoff
9a34ce553c make bool (isEmpty/hasData) checks for string and stack safe 2004-05-27 16:26:52 +00:00
alexpeshkoff
2fd7f7b01c text indent fix 2004-05-27 12:01:14 +00:00
alexpeshkoff
dd4280938f use windows upper/lower-case conversion functions for win32 build 2004-05-27 09:24:21 +00:00
alexpeshkoff
99dd6b8a03 optimize string performance with the price of 4 additional bytes per string 2004-05-26 16:10:56 +00:00
kkuznetsov
44242a72ce Fixed a couple of compile errors on Solaris x86 2004-05-24 11:23:41 +00:00
brodsom
dd5d8aba0a -Replace stuff macros with either common stuff inlines or class inline functions 2004-05-24 11:03:54 +00:00
robocop
1953841ae4 Without being able to compile it, I fixed the new SOLARIS code in semaphore.h that:
- didn't have any rational indentation but random positions and a combination of blanks and tabs
- instead of testing errno, assigned a value to it (= instead of ==)
- has some strange emoty if(); only put a comment here.
People shouldn't post code to CVS without at least reviewing visually what they wrote.
2004-05-23 06:07:46 +00:00
kkuznetsov
e2f56c62e3 Added semaphore implementation used conditional varyable and mutex, becouse of no sem_timedwait existans.
Ugly, errorable and untested.
2004-05-21 14:14:34 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
skidder
277788de7a NetBSD port from James K. Lowden 2004-05-20 23:05:02 +00:00
brodsom
7d532508ea Macro cleaning 2004-05-17 15:07:49 +00:00
kkuznetsov
234fdb0e43 Add check for caddr_t to fix compile error on Solaris munmap,
some more warnings to prefix solx86gcc, comment historycal pragmas
2004-05-13 14:05:00 +00:00
brodsom
8699aec9c9 -Avoid shadow warning 2004-05-12 19:23:17 +00:00
robocop
802f244ec1 Misc changes 2004-05-09 05:48:33 +00:00
alexpeshkoff
52928b2148 fixed bug in split() 2004-05-06 08:42:56 +00:00
skidder
21e44d3af3 Close a couple potential tins of worms spotted by Claudio in my previous commits 2004-05-03 17:05:56 +00:00
brodsom
1b92c3fb08 -Fix MinGW build 2004-05-03 12:20:01 +00:00
skidder
e9f8ef102e Fixes needed to make GCC 3.4 happy 2004-05-03 04:25:06 +00:00
skidder
8a4cb13eb2 Care about quirks of Windows platform 2004-05-03 01:53:24 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
brodsom
e0854daa99 Removing ib_stdio.h 2004-04-28 22:00:03 +00:00
skidder
9d15b2e7ee Fix GCC build 2004-04-25 03:29:20 +00:00
hvlad
2afe197918 Added Stack::iterator::hasMore method. Replaced getCount() and notEmpty() with hasMore() when it's possible 2004-04-23 08:02:52 +00:00
alexpeshkoff
7b27fa55be fixed number problems after lls to Stack conversion 2004-04-21 14:14:36 +00:00
alexpeshkoff
176041c63e applied fixes, mentioned by Claudio 2004-04-19 13:40:30 +00:00
alexpeshkoff
045e9dc8ec 1. removed any mentions of blk_pool() from engine (and method itself)
2. replaced 'struct lls' with 'template Stack'
2004-04-18 14:22:27 +00:00
skidder
6c9fbf8d85 Fix MSVC build 2004-04-18 03:34:22 +00:00
skidder
abdbec6f84 Switch to Firebird container templates for request resource tracking. This significantly reduces CPU time any memory consumption for databases with complex metadata 2004-04-18 02:50:38 +00:00
alexpeshkoff
2c12c05621 fixed problem with system log overflow in case of missing aliases.conf
** front-ported fix **
2004-04-11 14:47:04 +00:00
robocop
d601bab884 Style 2004-04-11 07:12:09 +00:00
skidder
648dd40826 Make it build 2004-04-11 02:40:08 +00:00
dimitr
a79171299f Corrections. 2004-04-10 14:00:04 +00:00
robocop
59b235cea3 Small corrections 2004-04-10 00:25:22 +00:00
skidder
af366d4f5a Add BugcheckAbort option to produce coredumps on BUGCHECKs and structured exceptions 2004-04-06 07:25:45 +00:00
aafemt
94bbbc5a6c TLS for win32 gcc 2004-04-06 05:53:36 +00:00
alexpeshkoff
40772a2e70 Added "T* getBuffer(capacity)" - this helps use Array as temp buffer 2004-04-01 14:15:34 +00:00
alexpeshkoff
eb23cf8796 string cleanup 2004-03-31 18:10:22 +00:00
alexpeshkoff
90d3086320 fixed serious bug in string::printf - thanks to Nickolay 2004-03-31 18:09:40 +00:00
alexpeshkoff
170bef6340 moved use of fb_assert to correct place 2004-03-31 17:13:24 +00:00
robocop
1824343930 Cleanup.
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
skidder
4093bc4ace Fix error in my previous commits spotted by claudio 2004-03-28 00:38:13 +00:00
skidder
dd02aa34e6 Fix Windows build after my previous commit 2004-03-25 23:36:03 +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
skidder
eb89d0fdce Fix a couple warnings 2004-03-25 06:50:50 +00:00
skidder
bb17776b6d Notify Alex about flaw in his string code 2004-03-24 05:43:08 +00:00
alexpeshkoff
94d2f698e2 1. introduced Jrd and Ods namespaces
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
*** posix build fixes ***
2004-03-20 15:45:12 +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
alexpeshkoff
0b53355916 1. dropped unneeded AutoPtrFromString
2. added private copy constructor and assignment to avoid errors
2004-03-20 14:30:52 +00:00
alexpeshkoff
233bcc7858 assert if AutoStorage() used for object not on the stack 2004-03-20 14:29:05 +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
0e24170951 fixing posix build 2004-03-15 19:35:00 +00:00
alexpeshkoff
151368f3cc fixing posix build 2004-03-15 19:10:44 +00:00
alexpeshkoff
e35767f54b This should fix non-VC6 builds. Thanks to Nickolay Samofatov 2004-03-15 18:48:10 +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
alexpeshkoff
f0ef70fa45 1. Full pair (both first and second pooled objects) added.
2. Pair may be placed to AutoPool.
2004-03-14 13:24:48 +00:00
alexpeshkoff
7457f71e0f 1) a bit more correct memory allocation debugging
2) use AutoStorage to allocate string data
2004-03-14 13:22:16 +00:00
alexpeshkoff
1a925afa38 Added capability to have following kinds of arrays:
1) sorted or unsorted
2) POD or objects
3) with or without inline storage
4) allocating from auto- or permanent-pool
All array constructors take MemoryPool& instead of MemoyPool*
2004-03-14 13:19:47 +00:00
alexpeshkoff
221ae2fa2a Pools support 2004-03-14 13:14:58 +00:00
alexpeshkoff
18b7cb3710 Templates, supporting objects initialization 2004-03-14 13:10:40 +00:00
alexpeshkoff
699cf30d77 May use _any_ way to delete pointer, not only operator delete 2004-03-14 13:08:36 +00:00
alexpeshkoff
0dbd44a35b Constructors to put arrays in local memory, use AutoStorage. 2004-03-14 13:07:01 +00:00
alexpeshkoff
2ae251add1 Added *Storage classes to be used as primary base for all pool-oriented classes 2004-03-14 13:05:02 +00:00
skidder
e8a3fd7ed1 Fix a couple errors I introduced in previous commit. Spotted by Claudio 2004-03-11 05:30:07 +00:00
robocop
2ab1f94dd2 Cleanup
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
skidder
f13321bc74 Fix a few warnings. Not very harmless ones 2004-03-11 04:26:54 +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
alexpeshkoff
b9b470b9c1 1. front-ported blob returning fix
2.correct license
2004-03-05 09:37:18 +00:00
skidder
725b7f9972 Be slightly more portable 2004-03-02 20:23:32 +00:00
eku
b28781c507 Fixed compilation issues (missing include files, wrong defines). 2004-03-02 08:43:33 +00:00
eku
8985d4672e Fixed compilation on systems without snprintf 2004-03-02 08:42:11 +00:00
alexpeshkoff
d261af4111 don't start variables names with underscore - _syscall caused problems with MSVC6 2004-03-01 16:50:26 +00:00
skidder
25b969d1b7 Fix MSVC build 2004-03-01 04:57:43 +00:00
skidder
dc7aab8f9c Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed 2004-03-01 03:35:23 +00:00
skidder
4b5428f833 Memory pages manager 2004-03-01 03:18:42 +00:00
skidder
ad97d0409d Fix POSIX build 2004-02-29 05:49:03 +00:00
alexpeshkoff
87cf963814 make our class behave MemoryPools friendly 2004-02-28 19:44:04 +00:00
alexpeshkoff
0097df8f26 Made it const-correct 2004-02-28 19:19:03 +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
aafemt
a705c5da0c Remove unneeded comparsions 2004-02-18 11:10:34 +00:00
aafemt
9c03f64c65 Fix a couple of warnings 2004-02-17 11:08:09 +00:00
alexpeshkoff
c4cd1da183 Please add this file to common section of appropriate builds!
Added native firebird::string class.
2004-02-09 07:41:45 +00:00
alexpeshkoff
efb64b2aab Added native firebird::string class. 2004-02-08 17:08:34 +00:00
alexpeshkoff
0ee51a6c60 const correctness 2004-02-08 16:35:40 +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
eku
4cbef7b979 Fixed compilation problems with size_t. It's primarily defined in sys/types.h 2004-01-13 13:40:20 +00:00
eku
14b3de174e Port numbers are limited to 16 bit. 2004-01-13 13:38:36 +00:00
stryqx
f7d06df281 Fix build on FreeBSD. 2004-01-12 00:56:03 +00:00
brodsom
36acb09df9 Fix MINGW build 2004-01-07 00:32:02 +00:00
fsg
e3ba8c5f42 Some changes to get it compiled under linux.
Use const declarations for BLANK etc. in isql.h again.
FSG
2004-01-03 14:12:45 +00:00
robocop
efa538a4ca adding obviously missing files, thanks Arno. 2003-12-31 10:33:02 +00:00
robocop
16cbc204df Cleanup 2003-12-31 05:36:12 +00:00
robocop
ad0b5c4de3 General cleanup 2003-12-22 10:00:59 +00:00
dimitr
995417f11a Minor cleanup 2003-12-14 18:26:25 +00:00
skidder
7558470e08 Fix another initializatoin race condition 2003-12-14 04:34:37 +00:00
dimitr
9859341694 Let's be compatible with the config files open in binary mode. 2003-12-13 10:59:59 +00:00
robocop
b02c629735 Cleanup
Some name changes
Try to fix SINIX-Z problems with send() prototype
2003-12-05 10:35:47 +00:00
dimitr
b15341b213 Small correction. 2003-12-01 19:44:29 +00:00
dimitr
b26b48c9bf Oops, sorry. 2003-12-01 17:53:44 +00:00
dimitr
726f0f836e Correction 2003-12-01 16:29:45 +00:00
dimitr
c8c2b04c49 1) Const correctness
2) A few extra vector-like methods
2003-11-30 21:01:35 +00:00
skidder
16ea16b085 Fix invariant tracking in recursive procedures and when invariants
depend on variables. This solves issues like SF#627057.
2003-11-23 20:17:30 +00:00
kkuznetsov
021a046ec1 Write solaris portion of RWlock 2003-11-21 19:42:06 +00:00
stryqx
99bb1302db Fix the spinlocks case for FreeBSD 4.x 2003-11-11 23:58:49 +00:00
robocop
db77ffa605 const correctness, variables in scope, cleanup, etc. 2003-11-07 08:06:35 +00:00
brodsom
ff070a16a8 Replacing assert with fb_assert 2003-11-03 23:59:24 +00:00
skidder
7b99b8a57b Basic INTL cleanup.
- Rework (mostly undo) John's changes
- Some function type safety
- Make INTL OO layer very thin (this should slightly improve performance)
2003-11-03 17:14:45 +00:00
brodsom
51893d72ad - Make MinGW build again after Nickolay patch (There is a multiple definition of std::bad_alloc::~bad_alloc()) 2003-11-03 02:05:14 +00:00
robocop
cda707bd36 const correctness and other related changes 2003-11-01 10:26:43 +00:00
brodsom
7acc0cf5bd Write fatal error messages into firebird.log 2003-10-30 10:59:32 +00:00
skidder
e5397f4180 Ugly hack to make Firebird compatible with host applications using STL 2003-10-27 22:27:30 +00:00
robocop
26b9005e05 Style: make the code more readable, keep spaces around operators 2003-10-20 10:26:31 +00:00
skidder
d7e24011b7 Clean up optimizer 2003-10-17 20:29:52 +00:00
skidder
4e8605294e Forward port Sparc fixes 2003-10-10 23:56:57 +00:00
dimitr
00f41da60e Increased a default size of the lock table, after discussion with Nickolay. 2003-10-03 10:38:06 +00:00
skidder
235db035ce Ok, i'm joining Firebird destruction team with my cleanup:
1. Bring trace DSQL, DYN and BLR trace logging up-to-date
2. Remove redundant CSB pointer dereferences in BLR parser and request compiler
3. Convert RIGHT JOIN to LEFT JOIN early during BLR parsing
4. Check BLR syntax for unititalized contexts usage
5. Some type-safety and const-correctness fixes
2003-09-28 21:36:05 +00:00
dimitr
6d6dae9295 Changed license of some files by Mark and myself. 2003-09-26 14:13:15 +00:00
skidder
bb1322a582 Correction 2003-09-16 21:45:47 +00:00
skidder
7873287ef3 Implement Firebird::Semaphore class for Windows and POSIX.
Those platforms which do not have POSIX semaphores (Solaris ?) may need to
implement this class using BSD or SYSV stuff.
2003-09-16 20:45:31 +00:00
brodsom
8fb3d96c84 Fix for MINGW build 2003-09-13 09:25:57 +00:00
brodsom
40fe35f036 Provisional quick fix for broken msvc 6 build with last Nickolay commit. To be reviewed by N. 2003-09-13 01:12:45 +00:00
skidder
349bbbd4f8 Mark volatile vars as such.
Add API to get current lock status for Win32 RWLock
2003-09-11 21:26:20 +00:00
skidder
77b17de987 NBACKUP-related changes and some clean-up 2003-09-08 20:23:46 +00:00
aafemt
7ba617f704 removing word 'struct' from variable declarations as obsolete 2003-08-26 10:58:06 +00:00
skidder
6f2c2095ae Fix kernel memory leak 2003-08-21 22:30:20 +00:00
skidder
3bb31b8fa9 Change header comment 2003-08-13 11:01:40 +00:00
skidder
f3348c4502 Apply FreeBSD patches by Tomas Skoda 2003-08-11 11:21:21 +00:00
skidder
ce78ed1f1d 1) Make NBACKUP happy on Win32 CS too.
2) Fix tracking of OWN_hung in Win32 CS lock manager (lock-up debugging aid)
3) Fix possible unsynchronized access to memory manager in Win32 CS builds
and client library. Have shown itself as a very rare crash of Win32 CS manager
process during its startup.
4) Reduce warnings a little
Points 2 and 3 need to be backported to B1_5_Release
2003-08-10 15:43:23 +00:00
brodsom
408f1feb79 Fix cast warnings 2003-08-09 19:20:02 +00:00
brodsom
d417781e3e Patch msvc6 after Nickolay changes 2003-08-08 00:38:25 +00:00
brodsom
b403a34bca Error patch, void function should not return a value. 2003-08-07 23:20:25 +00:00
skidder
c6a8ffcc5f New backup technology seems to work on Windows SuperServer now.
At least I can run 400MB AS3AP benchmark on it and lock/unlock/backup
database during this process.
2003-08-07 21:48:54 +00:00
skidder
84bfde306d Win32 engine builds and seems to work 2003-08-06 18:06:22 +00:00
skidder
0fff6a0150 Correction 2003-08-06 17:21:10 +00:00
skidder
e17f9dea02 Make the inferior MSVC7 compiler happy 2003-08-06 16:55:17 +00:00
skidder
143f8d2443 Implementation of fast physical incremental backup 2003-08-06 16:30:49 +00:00
dimitr
9644f06f00 Removed warning for fbembed 2003-07-08 11:49:02 +00:00
dimitr
ffc209d9dc Fixed typo. 2003-07-05 12:45:55 +00:00
dimitr
ef9fb69fa9 1) Cleanup
2) Some changes for the embedded server
2003-07-05 12:13:17 +00:00
dimitr
e6f62d4056 Fixed win32 build 2003-07-04 12:19:55 +00:00
dimitr
f765ec326c Renamed environment variable. Fixed one temp-related crash. 2003-06-25 07:45:00 +00:00
dimitr
318d501392 Fixed manual TCP port assignment. 2003-06-25 07:39:04 +00:00
kkuznetsov
8ba963241a Trying to make FB2 compiler independant add prefix for SUN C compiler and fix fist compilation error 2003-06-20 17:55:31 +00:00
dimitr
1bf11a67bd Fixed the config option. 2003-06-19 18:13:26 +00:00
alexpeshkoff
db39682f9a Added support for case-sensitivity in path's comaparison according to OS requirements.
Use it in config_file & dir_list
Now in win32 one may write: DatabaseAccess=ReStrIcT c:\HiSpAtH
2003-05-30 12:17:47 +00:00
alexpeshkoff
5c2341a427 Fixed problem with fbclient on 9x 2003-05-22 06:39:54 +00:00
alexpeshkoff
ae920fc330 For BootBuild don't give any diagnostic for missing firebird.conf.
For wrong firebird.conf - standard diagnostic.
2003-05-08 10:31:19 +00:00
skidder
142bd2b320 No more messages about forbidden usage of global operator new in DEV_BUILD. C++ library from RH8.0 does that routinely and this causes crashes because stderr messages go to TCP socket from fb_inet_server 2003-05-07 11:13:55 +00:00
dimitr
cdb3f8e2fd Since CS doesn't lock processes while waiting for incoming aux connection,
it's potentially dangerous to use one definite port for event processing.
2003-05-07 07:51:27 +00:00
dimitr
6679e2575c Corrected default value, as suggested by Nickolay. 2003-05-07 07:25:38 +00:00
dimitr
61195b72ae Changed default value. 2003-05-06 15:04:57 +00:00
alexpeshkoff
2c3384885d Enable spaces & tabs in directory list 2003-05-05 12:26:37 +00:00
skidder
90700fe81d Fix compiler warnings 2003-05-05 11:55:34 +00:00
alexpeshkoff
b75b326fdf Preprocessor cleanup 2003-05-05 10:45:10 +00:00
dimitr
cf54a1f284 Bugfix 2003-05-01 13:28:46 +00:00
dimitr
da728b793f Temporary directory management 2003-05-01 12:20:40 +00:00
dimitr
0c60a69e3a Temporary directory management 2003-05-01 11:35:15 +00:00
alexpeshkoff
2b9cbcdc7f Don't execute any constructors / destructors for elements of class T 2003-04-26 10:08:11 +00:00
alexpeshkoff
94b3140b2a Added dynamic arrays support 2003-04-25 14:47:10 +00:00
alexpeshkoff
2af60e8991 Exit on missing / wrong firebird.conf with error report in system log 2003-04-19 16:46:24 +00:00
alexpeshkoff
54acfce2fb Restrict UDF access via UdfAccess entry in firebird.conf 2003-04-12 16:34:26 +00:00
alexpeshkoff
e27219f2e9 Directory access restrictions don't apply now to BOOT_BUILD 2003-04-12 10:24:39 +00:00
aafemt
b3436b5cd7 STATUS -> ISC_STATUS 2003-04-10 06:32:58 +00:00
alexpeshkoff
4425587591 Removed g++ warnings 2003-04-07 15:48:55 +00:00
alexpeshkoff
7b899d99f0 New style of files access configuration 2003-04-06 15:01:30 +00:00
alexpeshkoff
ec88146136 Code cleanup 2003-04-06 09:08:58 +00:00
alexpeshkoff
d982d224fe Enabled up-dir access for fully opened filesystem 2003-04-03 13:32:28 +00:00
alexpeshkoff
ff5b7feba5 Fixed use of / and c:\ in directories list 2003-04-02 15:14:14 +00:00
brodsom
20da14459f - Avoid signed-unsigned comparison 2003-04-02 11:14:29 +00:00
alexpeshkoff
33f5f01622 Added DatabasesDirs parameter to firebird.conf.
Databases may be accessed only in trees, listed there.
For compatibility reasons, default = /
2003-03-31 17:41:18 +00:00
alexpeshkoff
45ad6a1bda External files access restriction cleanup 2003-03-23 16:50:54 +00:00
alexpeshkoff
dc5b1d5cb2 Added required comments 2003-03-17 18:01:17 +00:00
alexpeshkoff
40432510b4 Fixed names and default value for EXTERNAL_TABLES_DIRS config parameter 2003-03-17 17:57:58 +00:00
alexpeshkoff
858c958da6 Small posix fix 2003-03-15 20:20:42 +00:00
alexpeshkoff
70c9d082ba Now external tables are checked against directories list 2003-03-15 20:20:41 +00:00
alexpeshkoff
90d86726c8 Add new config parameter 2003-03-15 20:02:39 +00:00
dimitr
b082df8ff7 New config options. 2003-03-11 14:57:08 +00:00
brodsom
4051c36d57 Restore inlines 2003-02-25 01:11:29 +00:00
brodsom
89702f3e88 Restore inlines 2003-02-25 00:05:06 +00:00
dimitr
bdb6d25a3b Committed Mike's introduction of short-circuit boolean evaluation. 2003-02-21 09:17:03 +00:00
eku
b3eed24737 XPG defines that prototypes for malloc/free have to be defined in stdlib.h.
malloc.h is deprecated - removed.
2003-02-20 06:36:40 +00:00
brodsom
9d2e89e69f Warning control from autoconfig_msvc.h 2003-02-17 13:28:17 +00:00
dimitr
2f8df3c1a5 New config values for win32. 2003-02-16 18:58:56 +00:00
dimitr
567e575ff4 Fixed config error. 2003-02-16 13:26:53 +00:00
brodsom
8bdf295e25 Change build system to move warning control to only one header for each compiler 2003-02-16 11:39:22 +00:00