1
0
Fork 0
Commit Graph

875 Commits

Author SHA1 Message Date
Wilfried Goesgens bb9039c855 Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-10-29 16:01:01 +01:00
Jan Steemann ac4069d9de added TRI_DeleteArrayJson() function 2015-10-29 14:49:29 +01:00
Jan Steemann 01499dde43 added deadlock detection for lazy locking of collections 2015-10-29 11:57:22 +01:00
Wilfried Goesgens 951165ab1e Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH
Conflicts:
	arangod/Aql/grammar.cpp
	arangod/Aql/grammar.h
	js/common/modules/org/arangodb/graph-examples/example-graph.js
2015-10-28 11:08:18 +01:00
jsteemann 5fff134c80 added CXX implementations of `WITHIN` and `NEAR` AQL functions 2015-10-27 23:24:00 +01:00
jsteemann fad9782a4a removed unused functions 2015-10-23 01:22:41 +02:00
Frank Celler b7de227138 removed readline 2015-10-22 15:41:33 +02:00
Wilfried Goesgens cd6cc35def Adjust the stage to the now non-void pointered index implementation. 2015-10-22 11:12:21 +02:00
Wilfried Goesgens dae95de667 Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-10-21 14:54:01 +02:00
Michael Hackstein 3a3ab872f0 Fixed internal error for plan instantiation if the condition is empty 2015-10-19 15:09:59 +02:00
Jan Steemann 84978c0a8a noexcept emulation 2015-10-19 12:03:15 +02:00
Jan Steemann 37e76084bb Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-jmmh-conditions 2015-10-19 09:52:53 +02:00
Frank Celler 1641553f26 fixed signed / unsigned mixup 2015-10-18 23:40:34 +02:00
jsteemann aaf9c72e3c removed unused typedef 2015-10-17 09:28:39 +02:00
Christiano Anderson 1ba370f214 Changed PT message 2015-10-16 12:44:45 -03:00
Christiano Anderson ddcb14b94a Added PT bye message 2015-10-16 10:58:04 -03:00
jsteemann 04a9ee03c3 fixed an assertion failure 2015-10-15 23:27:14 +02:00
Jan Steemann 7f778b148a blind commit 2015-10-15 16:19:33 +02:00
jsteemann f5f61ea173 cppcheck 2015-10-15 01:32:25 +02:00
Jan Steemann b792632726 preparations for condition validation 2015-10-14 18:29:00 +02:00
Jan Steemann 98882efa61 optimizer fixes 2015-10-14 16:56:03 +02:00
Michael Hackstein 4c6b0f283a AttributeNames from the attribute parser are now non-nested attributes. They offer a function to join nested elements 2015-10-13 16:26:11 +02:00
jsteemann adebf6e7c9 removed some iostream includes 2015-10-12 21:40:46 +02:00
Jan Steemann ffa777979c make IN values unique and sort em 2015-10-12 15:34:41 +02:00
Jan Steemann f0edd198bc added specializeOne() and specializeAll() 2015-10-12 13:02:52 +02:00
Jan Steemann bf71cdecdb noexcept 2015-10-08 16:35:28 +02:00
Michael Hackstein 345725bdf9 Fixed skiplistindex with equality and range conditions 2015-10-08 14:58:52 +02:00
Michael Hackstein 5a026db641 Merge branch 'aql-jmmh-conditions' of github.com:arangodb/arangodb into aql-jmmh-conditions 2015-10-07 16:13:04 +02:00
Jan Steemann a1de2bfcc1 Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-jmmh-conditions
Conflicts:
	CHANGELOG
2015-10-07 10:18:21 +02:00
jsteemann c5cb00f56d removed unused methods 2015-10-06 21:38:49 +02:00
Michael Hackstein 9f9e49566b Fixed namespace issue for ostream of TRI_json_t 2015-10-06 17:50:03 +02:00
Jan Steemann 118f924598 support [*] operator 2015-10-05 19:15:22 +02:00
Jan Steemann e46ba60715 changed signatures of attribute-access-detecting functions 2015-10-05 16:01:19 +02:00
Jan Steemann 1f009a046c Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-jmmh-conditions 2015-10-05 10:32:53 +02:00
jsteemann c302b9153a added stringification for TRI_json_t 2015-10-02 21:10:34 +02:00
Jan Steemann 7292384b37 deduplicate IN arrays 2015-10-02 14:05:27 +02:00
Jan Steemann 0ea2247eb0 scan-build 2015-09-30 17:28:52 +02:00
Michael Hackstein 1a7f414c16 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-09-18 12:21:39 +02:00
Frank Celler c4d1fff729 new traversal 2015-09-18 10:40:28 +02:00
Jan Steemann 775292224a don't leak lockfile descriptor at shutdown
the descriptor will be freed by the OS anyway at shutdown, but fixing this will make the leak disappear from the Valgrind output
2015-09-17 18:02:59 +02:00
jsteemann 6f17678fd9 use table lookups for JSON escaping 2015-09-16 01:18:57 +02:00
Jan Steemann 75ccd7e2cc fixed incremental sync method 2015-09-14 17:44:12 +02:00
Jan Steemann 5865ca7955 lol self 2015-09-08 15:16:10 +02:00
Jan Steemann 18963d635c fix leak 2015-09-08 15:06:43 +02:00
Michael Hackstein 1afd19e550 Fixed the resizing of AssocUnique. It was different from AssocMulti which cased the nonUnique index to be faster than the unique one 2015-09-08 11:48:57 +02:00
Jan Steemann 8b599b5274 changed some include headers around 2015-09-07 17:09:10 +02:00
Jan Steemann b6a1684605 primary index speedup 2015-09-07 16:22:39 +02:00
Jan Steemann 39939fc1c9 primary index initial insertion speedup 2015-09-07 13:05:02 +02:00
Jan Steemann f45d9f5bc7 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-09-07 09:39:50 +02:00
Jan Steemann b74d608180 fixed my own bug 2015-09-07 09:39:21 +02:00
CoDEmanX 8aa78dcb7f Fix some more typos 2015-09-05 17:18:04 +02:00
Jan Steemann 21d023b502 fixed inconsistent ifdefs 2015-09-04 18:14:55 +02:00
Jan Steemann 47360f4511 added tests 2015-09-04 14:21:31 +02:00
Willi Goesgens 771c291042 Merge pull request #1472 from CoDEmanX/devel
More Americanization
2015-09-04 09:15:30 +02:00
Jan Steemann 06760a2c45 fixed broken index scan 2015-09-03 22:49:53 +02:00
CoDEmanX 3a9648d78a More Americanization 2015-09-03 22:25:43 +02:00
Michael Hackstein 630c8fd42f Improved Primary Sequential read 2015-09-03 16:25:24 +02:00
Jan Steemann ec61d921f6 fixed typo 2015-09-03 13:55:07 +02:00
Jan Steemann ad67d59fc9 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-09-03 13:54:01 +02:00
Jan Steemann ad6ca31201 use unique_ptr 2015-09-03 13:53:50 +02:00
Jan Steemann 5c44c968ef no additional memory allocations in maintainer mode, no zone comparisons on free 2015-09-03 13:15:49 +02:00
Jan Steemann 73d087f788 delete random implementation on shutdown 2015-09-03 13:08:13 +02:00
Michael Hackstein 0edccb5ca3 The AssocUnique does not require the key element for insertion any more. It needs two functions instead: Compare identical and compare element keys. 2015-09-03 10:16:15 +02:00
Michael Hackstein 481cb1b7dd Removed const in AssocMulti batch insert. It was non-const casted internally... 2015-09-03 10:16:15 +02:00
Michael Hackstein 9001e88a89 Added a general batch inserter for AssocUnique. Not used in any index yet 2015-09-03 10:16:14 +02:00
Jan Steemann c89cf82c6b constified 2015-09-02 17:37:28 +02:00
Jan Steemann 4494b69f8e fix compiler warnings on 32bit 2015-09-02 14:13:27 +02:00
Jan Steemann 2e617ac0cc Merge branch 'american-english' of https://github.com/CoDEmanX/ArangoDB into devel
Conflicts:
	arangod/Wal/Slots.cpp
	lib/Basics/debugging.cpp
	lib/Basics/files.cpp
2015-09-02 13:14:49 +02:00
Jan Steemann 0e802d6438 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-09-02 10:20:18 +02:00
Jan Steemann a7dc45e966 use ReadWriteLocker 2015-09-02 10:20:05 +02:00
Jan Steemann a80d6635ab create fat datafiles
This prevents SIGBUS when a sparse datafile is accessed and the disk is full. In
this case the mmapped region is not necessarily backed by physical memory, and
accessing the memory may crash the program
2015-09-02 10:18:24 +02:00
CoDEmanX 956b396e43 Change spelling of 'initialize' to American English (actual code and files) 2015-09-01 17:29:22 +02:00
CoDEmanX b4593a7e82 Change spelling of 'initialize' to American English (comments and log messages only) 2015-09-01 17:07:21 +02:00
Michael Hackstein faf0677757 Removed debug output 2015-09-01 15:05:49 +02:00
Michael Hackstein a9e7adc1ed Fixes in basics SkipList 2015-09-01 15:05:48 +02:00
Michael Hackstein 4409a59265 Further templatification of skiplist and fixed the tests 2015-09-01 15:05:47 +02:00
Michael Hackstein e01f8f6b0f Fixes for C++ification of skiplist 2015-09-01 15:05:47 +02:00
Michael Hackstein cbd1cd7111 Removed non obsolete file for basic skiplist 2015-09-01 15:05:46 +02:00
Michael Hackstein d50df2617c Templatified the Basic skiplist. This avoids using void* and includes type safeness 2015-09-01 15:05:46 +02:00
Michael Hackstein b8b129d84c The primary index now uses the Hash-cache again 2015-08-31 11:33:12 +02:00
Jan Steemann 573c143398 constified 2015-08-29 02:18:02 +02:00
Michael Hackstein 81fa8018b0 Improved primary index lookups to use parameter by reference instead of byPointer. less error prone. Fixed some issues with it. 2015-08-28 09:28:24 +02:00
Michael Hackstein 771a6d5143 Should have dereferenced the pointer before adding sth 2015-08-28 09:28:24 +02:00
Michael Hackstein 082e49f2c1 Further adoptions of internal functionality to new Primary index 2015-08-28 09:28:23 +02:00
Michael Hackstein 6d4d41387b Implemented sequential read and any read in Transaction.h 2015-08-28 09:28:22 +02:00
Michael Hackstein 48240bccc1 Added findSequential and findRandom in AssocUnique. Required for PrimaryIndex 2015-08-28 09:28:22 +02:00
Michael Hackstein b791ea09da Fixed a bug in AssocUnique. 2015-08-27 10:38:43 +02:00
Jan Steemann 1a2449193e skiplist code cleanup 2015-08-26 22:52:41 +02:00
Jan Steemann 21793ff9f7 cppcheck 2015-08-26 21:36:44 +02:00
Jan Steemann e8505a35f2 cppcheck 2015-08-26 21:35:57 +02:00
Michael Hackstein 2212be29c0 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-08-26 17:10:14 +02:00
Michael Hackstein 7257bf0b9d Skiplist and HashIndex will now print their figures if requested 2015-08-26 17:10:02 +02:00
Jan Steemann 8f2df77c30 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-08-26 16:59:40 +02:00
Jan Steemann 249627e21b fixed VS build 2015-08-26 16:59:27 +02:00
Max Neunhoeffer c0f1b72bab Add "sensible" madvise calls.
Essentially the strategy is: A newly created and a newly opened file
is advised to be "SEQUENTIAL ACCESS", because we will either write to
it or scan it sequentially. As soon as it is sealed, we switch the
advice to "RANDOM ACCESS", because this should be the normal pattern and
aggressive read-aheads tend to be bad. The collector and the compactor
switch a sealed file back to "SEQUENTIAL ACCESS" just before they scan
it and back to "RANDOM ACCESS", when they are done.

Furthermore, all data files in a collection are advised with "WILLNEED"
just before the collection is scanned during loading.

Finally, the actual hash table of AssocMulti is advised to be random
access, although this is an anonymous map given to us by malloc and not
a memory mapped file.
2015-08-26 16:45:26 +02:00
Jan Steemann a3550e331e fixed makefiles 2015-08-26 16:17:45 +02:00
Michael Hackstein 4a3b8007bd Fixed memory calculation of HashIndexMulti. And added index information for it 2015-08-26 14:38:23 +02:00
Michael Hackstein 4effa2291e Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-26 10:41:27 +02:00
Jan Steemann 9374a25822 removed unused error code 2015-08-25 19:55:48 +02:00
Michael Hackstein 40c1361244 Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-25 16:40:31 +02:00