1
0
Fork 0
Commit Graph

1224 Commits

Author SHA1 Message Date
Michael Hackstein 02784df7f8 Updated file list function to use std::vector<std::string> instead of TRI_string_vector_t. 2015-12-08 15:10:03 +01:00
Michael Hackstein 1e7108d9ca Optimized toVelocyPack functions in Index. Added special implementations for edge and primary indexes. All others TODO 2015-12-07 15:44:28 +01:00
Michael Hackstein fe61871111 Added a new convenience function to VelocyPackHelper to get either the string value of an attribute or a default string if it fails 2015-12-06 12:57:02 +01:00
Michael Hackstein 6474f65166 Added an additional assertion to VPackHelper 2015-12-05 13:01:10 +01:00
Michael Hackstein a8ff6f3a5f Fixed convenience function for NumberType in VPack 2015-12-04 16:44:22 +01:00
Jan Steemann 5c033f566b Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-04 13:47:08 +01:00
Jan Steemann 75a888d9ac Windows fixes 2015-12-03 15:06:20 +01:00
Jan Steemann d572f3ed03 Merge branch 'aql-multi-modify' of https://github.com/arangodb/arangodb into devel 2015-12-03 11:38:30 +01:00
Michael Hackstein 3ea14e66a3 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-12-03 10:19:17 +01:00
jsteemann 9fa0f6d3a7 Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-multi-modify 2015-12-02 16:38:50 +01:00
Jan Steemann eb8899d9ae applied changes suggested by cppcheck 2015-12-02 10:17:14 +01:00
jsteemann 49af794f5d Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-multi-modify 2015-12-01 01:56:46 +01:00
Michael Hackstein e56776bfd5 The PathEnumerator now automatically prunes if the getVertex callback returns false 2015-11-27 16:23:13 +01:00
Michael Hackstein 7bf37620bb Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-26 16:32:26 +01:00
Jan Steemann e29bc893b7 finalized index API changes 2015-11-25 16:44:01 +01:00
Jan Steemann db85c926be added transaction to AssocUnique APIs 2015-11-25 15:57:48 +01:00
Jan Steemann db078f1554 changed some APIs of AssocMulti 2015-11-25 15:40:01 +01:00
Jan Steemann 9ef5b4746a removed several includes from Common.h 2015-11-25 12:21:55 +01:00
Jan Steemann b6752faf0b Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-25 11:44:32 +01:00
Jan Steemann a7c8a37938 use range-based for loop 2015-11-25 11:05:31 +01:00
Jan Steemann 5518244942 less iostream-ing 2015-11-24 13:55:06 +01:00
Michael Hackstein b18ce56a68 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-20 10:49:00 +01:00
Jan Steemann a4bff00093 Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-19 16:46:30 +01:00
Jan Steemann bcb31ab4c2 insertv continued 2015-11-19 16:46:06 +01:00
Max Neunhoeffer f604f1d434 Fix Prefetch NOP. 2015-11-19 16:45:19 +01:00
Max Neunhoeffer de47cb4ad7 Add a memory prefetch hint. 2015-11-19 16:44:32 +01:00
Jan Steemann 89e0f887b9 velocypack update 2015-11-19 13:28:40 +01:00
jsteemann cb62c657e0 initial commit 2015-11-18 17:46:19 +01:00
Michael Hackstein 7a36bbb43f Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-18 13:58:47 +01:00
Jan Steemann a6b898c34a Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-17 14:09:15 +01:00
Jan Steemann 82eddeb120 allow using array indexes without specifying the `[*]` extension 2015-11-17 14:03:58 +01:00
Jan Steemann dca8efa82f updated vpack library 2015-11-13 12:58:17 +01:00
Michael Hackstein 8d0d921ab6 Included two Abstract classes for Traversals. Traverser and TraversalPath. Implemented both of them for Single-Server Traversals. 2015-11-12 16:25:36 +01:00
Jan Steemann 71e605a5c7 updated vpack library 2015-11-11 13:57:17 +01:00
Jan Steemann ccf75ab804 updated vpack library 2015-11-10 15:49:38 +01:00
Michael Hackstein d12daaaef7 Replaced TRI_Json_t in RestExportHandler by VelocyPack 2015-11-10 14:12:40 +01:00
Michael Hackstein eb9376f7d8 Added a method to create TRI_json_t from VPack 2015-11-10 09:54:27 +01:00
Michael Hackstein 66e1534b65 Started to Implement a static VelocyPackHelper. Having the same functionality as JsonHelper but for VelocyPack. Should make move way easier. 2015-11-09 16:01:54 +01:00
Wilfried Goesgens 7a54982eb4 Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-11-06 13:53:21 +01:00
Michael Hackstein 074c071573 Implemented a VelocyPack Dumper adapter for TRI_string_buffer 2015-11-06 11:38:04 +01:00
Jan Steemann dc53e9fe95 move away from mutex to atomic variables 2015-11-05 10:58:35 +01:00
Wilfried Goesgens 179660e87c Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-11-04 17:07:09 +01:00
Frank Celler 94a730edd2 Merge pull request #1528 from christiano/devel
Added PT bye message
2015-11-04 13:23:51 +01:00
Jan Steemann 874fe25fcb fixed test failure 2015-11-03 10:21:32 +01:00
Jan Steemann eef31ab797 comments 2015-11-03 10:21:32 +01:00
Michael Hackstein f23259b2bb Added CXX implementation of BINARY_OPERATOR_DIV 2015-11-03 10:19:30 +01:00
Michael Hackstein 11606c1f55 Added a CXX implementation of BINARY_PLUS. 2015-11-03 10:19:26 +01:00
Frank Celler 3500e569a8 reverted 011117edee, 72c8847324, 5da5715fa9, a371aac4af, 7decf1560a, 0331ff7993, 6ec2014052, ae8d686ae6, 7efd0a1ec7, 3449b87e2c, d35a4034ef, 7b3c1ed4dd, e0c88e4a1a, 952d643101, fc9de8ed08, 2f4319b31a, 105662d5ba, 0a08833b0f, 4ac19a99fc, 4c5494c67d, 528bb85b30, 528bb85b30 becuase of missing CLA 2015-11-03 10:19:25 +01:00
Frank Celler 2d63bd5e7c reverted e9a4f7bb55, 21b498127c, fe02d691d8, 75e904c085, 42440ff75a becuase of missing CLA 2015-11-03 10:19:24 +01:00
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
Jan Steemann 18f231f666 do not read memory for comparisons 2015-08-25 16:09:12 +02:00
Max Neunhoeffer 7957df9215 Merge branch 'array_indexing' of ssh://github.com/ArangoDB/ArangoDB into array_indexing 2015-08-25 13:04:48 +02:00
Max Neunhoeffer 203e9a5195 Make hashcache in AssocMulti switchable-off. Does not work yet. 2015-08-25 12:46:47 +02:00
Michael Hackstein 57c6103458 Revert "The AssocUnique index now requires only an element to insert it. They key is derived"
This reverts commit ea70a948e254716905a7619e72b41fbef4f66695.
2015-08-25 09:40:29 +02:00
Michael Hackstein 2d6af6e872 The AssocUnique index now requires only an element to insert it. They key is derived 2015-08-24 17:14:39 +02:00
Michael Hackstein 5b6f8b7b8e Added a remove by key function to AssocUnique 2015-08-24 17:06:21 +02:00
Michael Hackstein ba8264eada AssocUnique is now a templated index. Foundation to move primary index to use it 2015-08-24 16:41:16 +02:00
Michael Hackstein f9647962d7 Moved HashIndex/hash-array.h to Basics/AssocUnique.h 2015-08-24 14:17:49 +02:00
Michael Hackstein 2dd0f7cf7f Continued @neunhoef 's on simplification of hash-index. The index itself will never free anything, calling class is responsible for freeing now. 2015-08-24 13:14:35 +02:00
Michael Hackstein d43c515b56 Fixed a bug in hash index buckets. When resizing the table was not nulled correctly. 2015-08-24 11:22:53 +02:00
Michael Hackstein b708a7ae68 Merge remote-tracking branch 'origin/devel' into array_indexing 2015-08-21 15:34:49 +02:00
Michael Hackstein 85b58a6d8d Fixed sparse indexes 2015-08-21 14:07:32 +02:00
Michael Hackstein 9bb7c0dec6 The skiplist index is now able to index arrays as well 2015-08-21 11:04:04 +02:00
Michael Hackstein 4bb8508d82 Implemented a new improved version of the Array index insertion function. 2015-08-20 14:03:17 +02:00
Willi Goesgens 61eb1e6002 Fix vs 2015 compile issue. 2015-08-20 11:34:01 +02:00
Jan Steemann deb7830615 fix dump/restore filenames 2015-08-20 02:47:00 +02:00
Jan Steemann 97d67e4399 use binary-safe string representations 2015-08-20 01:46:20 +02:00
Jan Steemann 0e3fddf917 fixes for VS2015 2015-08-19 17:18:13 +02:00
Michael Hackstein 241905c42c Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-19 12:51:53 +02:00
Jan Steemann 65424143c6 fix VS build 2015-08-19 12:37:34 +02:00
Jan Steemann 28ad41defc fix compile warnings 2015-08-19 12:22:34 +02:00
Jan Steemann e9a598c020 do not include deprecated header 2015-08-19 12:01:12 +02:00
Michael Hackstein 1a4d59d954 Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-19 11:57:12 +02:00
Jan Steemann 6680f3bb5a fix Mac build 2015-08-19 11:56:41 +02:00
Michael Hackstein 59e8ea3fad Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-19 11:56:34 +02:00
Jan Steemann 9f0384284f moved files 2015-08-19 11:19:37 +02:00
Jan Steemann 338dd7e100 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-08-17 18:41:13 +02:00
Jan Steemann 4e771b2728 replication improvements 2015-08-17 18:41:05 +02:00
Willi Goesgens 35de50d153 set the mac to add hashes too. 2015-08-17 17:31:15 +02:00
Michael Hackstein e867181a72 Merge remote-tracking branch 'origin/eimerung_hashindex' into array_indexing 2015-08-17 15:58:53 +02:00
Michael Hackstein 2c0bdb5861 Added a function in the attribute parser to transform an expanded attribute to the correct path for pid. 2015-08-17 12:43:13 +02:00
Max Neunhoeffer 1ba7587fc0 Rename ThreadProtector to DataProtector. 2015-08-17 12:43:12 +02:00
Jan Steemann a8428877e7 some cleanup 2015-08-17 12:43:12 +02:00
Jan Steemann 4db822443b allow non-const access to string-buffer 2015-08-17 12:43:11 +02:00
Michael Hackstein 8e3e2d547d Do not push <Class const> into vector. It does not work everywhere 2015-08-17 12:43:11 +02:00
Jan Steemann 98106510d2 remove CONST_CAST helper 2015-08-17 12:43:11 +02:00
Jan Steemann 205d1e73ed fix Visual Studio compile errors 2015-08-17 12:43:09 +02:00
Michael Hackstein d7d00a5d0d Fixed index comparision with multiple components. Introduced by AttributeName format. 2015-08-17 12:43:09 +02:00
Max Neunhoeffer a18faae89f Untemplatify ThreadProtector for those with gcc < 4.9.2.
We will revert this later once everybody has gcc >= 4.9.2.
2015-08-17 12:43:09 +02:00
Jan Steemann 907e6368c6 some unused function cleanup 2015-08-17 12:43:09 +02:00
Michael Hackstein c2338d80d0 A user can now create an indux on attribute[*] which will put an index on attribute and ignores the expand flag. Does not harm any feature in AQL now. 2015-08-17 12:43:08 +02:00
Michael Hackstein 17a8f73a06 Now the input for indexes is parsed using the new attribute parser. This means the flags for expanded Attributes are set. Also introduced a transformation function to transform an attributeName list back into a string. 2015-08-17 12:43:07 +02:00
Max Neunhoeffer a5cb29e026 Improve the explanation of ThreadProtectors. 2015-08-17 12:43:06 +02:00
Max Neunhoeffer 49f74b1baf Replace DataGuardian by ThreadProtector. 2015-08-17 12:43:06 +02:00
Michael Hackstein 8fbb2739b0 The indexes can now use the new AttributeName struct which contains a flag if the attribute should be Array-Indexed. Right now this flag is hard-coded to false in all cases and not persisted. 2015-08-17 12:43:05 +02:00
Michael Hackstein c85d5e347a Implemented a new AttributeNameParser this is able to identify [*] expansion and shall be used for array indexes. Also includes tests. 2015-08-17 12:43:05 +02:00
Jan Steemann 46565e4daf fix parallel insertion 2015-08-17 12:43:05 +02:00
Max Neunhoeffer 6d5d14a3ed Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-08-17 12:40:16 +02:00
Jan Steemann 57e9b55739 use TRI_CHAR_NODE_PAIR() 2015-08-14 00:54:59 +02:00
Max Neunhoeffer 1cfaf524d1 Fix DataProtector after blog post comments. 2015-08-13 23:16:07 +02:00
Jan Steemann 22e14c9444 fix buffer overrun when there are more users than DATA_PROTECTOR_MULTIPLICITY 2015-08-13 20:57:34 +02:00
Jan Steemann ca5b7661a3 initialize _list to nullptr
otherwise _list is uninitialized and if the assignment in the constructor fails with std::bad_alloc,
the destructor will delete from an uninitialized pointer
2015-08-13 20:19:41 +02:00
Jan Steemann 6dc10ba1de remove unused function 2015-08-13 16:34:55 +02:00
Jan Steemann a1d0c4e431 fixed g++5.1 compile error, added tests 2015-08-13 11:14:50 +02:00
Jan Steemann 99ac624ab0 declare differently 2015-08-13 00:17:37 +02:00
Jan Steemann 59744e9945 more version information (readline version, tcmalloc usage) 2015-08-12 21:38:50 +02:00
Jan Steemann 7b5ac63591 cppcheck 2015-08-12 21:37:28 +02:00
Jan Steemann 589e67357f issue #1434: return more meaningful error message from org/arangodb/general-graph::_fromVertex() 2015-08-12 21:36:27 +02:00
Jan Steemann f6f10dbd45 removed uncalled functions 2015-08-12 19:46:25 +02:00
Jan Steemann f1c5480e97 small cleanup 2015-08-12 15:01:33 +02:00
Jan Steemann e642ce972f throw error if collection not yet loaded 2015-08-10 17:08:41 +02:00
Max Neunhoeffer a851b5a69d Rename ThreadProtector to DataProtector. 2015-08-10 09:54:29 +02:00
Jan Steemann 5d82f0b385 some cleanup 2015-08-07 15:16:33 +02:00
Jan Steemann 68d58248da allow non-const access to string-buffer 2015-08-07 13:29:38 +02:00
Jan Steemann da38382202 remove CONST_CAST helper 2015-08-07 13:18:21 +02:00
Jan Steemann 9778bc16fd fix Visual Studio compile errors 2015-08-07 11:07:56 +02:00
Max Neunhoeffer 5472655ca7 Untemplatify ThreadProtector for those with gcc < 4.9.2.
We will revert this later once everybody has gcc >= 4.9.2.
2015-08-07 10:20:31 +02:00
Jan Steemann 330fac6225 some unused function cleanup 2015-08-06 21:25:32 +02:00
Max Neunhoeffer 0931e1aef8 Improve the explanation of ThreadProtectors. 2015-08-06 13:18:25 +02:00
Max Neunhoeffer e197e02b5b Replace DataGuardian by ThreadProtector. 2015-08-06 13:03:37 +02:00
Jan Steemann 2a88c76e0e fix parallel insertion 2015-08-05 15:16:07 +02:00
Jan Steemann c0e26e7a78 handle UBool result type correctly 2015-08-04 12:21:34 +02:00
Jan Steemann 35529ffd61 make more environment data available in --version 2015-08-04 11:21:50 +02:00
Jan Steemann 7a3d49be88 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-08-04 10:30:28 +02:00
Jan Steemann 0400737ae4 some flock diagnostics 2015-08-04 09:57:28 +02:00
Jan Steemann 0f1ce26e41 added function to create an ICU RegexMatcher 2015-08-03 23:57:26 +02:00
Jan Steemann 38227a81f8 speed up initial edge index creation 2015-08-03 18:27:50 +02:00
Jan Steemann 23f8f2f86b nullptr 2015-07-30 22:43:02 +02:00
Jan Steemann 6d4395059b use lock guards 2015-07-29 15:15:49 +02:00
Jan Steemann 326f0dba6e removed some unused code 2015-07-29 13:50:18 +02:00
Jan Steemann 454a6c998c Merge branch 'devel' of https://github.com/arangodb/arangodb into shaper-cxx 2015-07-28 17:38:48 +02:00
Jan Steemann 6d7ccd7699 move shaper to cxx 2015-07-28 17:38:31 +02:00
Michael Hackstein 412394ff3c Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-07-28 13:22:01 +02:00
Michael Hackstein 25f7b25206 Fixed failing failure-tests 2015-07-28 13:21:54 +02:00
Jan Steemann 3d3024a54e cppcheck 2015-07-28 09:51:24 +02:00
Jan Steemann 7e4b615248 simplify call to mmap 2015-07-27 16:24:25 +02:00
Frank Celler 33d702c190 ignore died process on delete 2015-07-24 09:30:26 +00:00
Frank Celler 4dccc6a8dc Merge branch 'devel' of github.com:arangodb/arangodb into dispatcher 2015-07-23 15:41:05 +02:00
Frank Celler 35a3c6421c moved dispatcher to atomic 2015-07-23 15:40:34 +02:00
Max Neunhoeffer 68a5f3a131 Add one more comment. 2015-07-23 14:46:25 +02:00
Max Neunhoeffer 395e920825 Add a few more comments. 2015-07-23 14:44:58 +02:00
Max Neunhoeffer 350da2c910 Add a data guardian implementation (lock-free using hazard pointers). 2015-07-23 14:23:04 +02:00
Max Neunhoeffer c3c1c3242f Add TRI_DEFER. 2015-07-22 10:29:13 +02:00
Jan Steemann abf69329e2 casts for Windows 2015-07-21 18:57:56 +02:00
Jan Steemann 38cdc662ec removed configure options `--enable-timing` and `--enable-figures` 2015-07-21 18:47:43 +02:00
Jan Steemann 20c96b5e46 removed locks 2015-07-21 17:34:57 +02:00
Jan Steemann 09736f965f more lock instrumentation 2015-07-21 13:09:02 +02:00
Jan Steemann 4d0872f2b9 more cxx 2015-07-20 18:42:02 +02:00
Jan Steemann a5db59cc47 remove some locks in HttpServer and friends 2015-07-17 17:48:45 +02:00
Jan Steemann c54b5a6ba8 renamed file 2015-07-16 21:06:29 +02:00
Jan Steemann 1428af9e49 remove useless header inclusions 2015-07-15 21:47:50 +02:00
Jan Steemann 6d4dbcbb47 add SpinLock and SpinLocker, unified other Lockers 2015-07-15 21:22:00 +02:00
Willi Goesgens 0f85dec259 Fix memleak with unique_ptr 2015-07-15 09:57:35 +02:00
Willi Goesgens a2b29d8864 work around error message about empty object when compiling in devel mode. 2015-07-14 17:04:11 +02:00
Jan Steemann af9c155c90 use references 2015-07-14 14:05:18 +02:00
Jan Steemann cc27e9b88f try to pacify some compilers 2015-07-14 08:50:29 +02:00
Jan Steemann 53400a44a7 simplifications 2015-07-13 22:56:41 +02:00
Michael Hackstein 32100ca6fd Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-07-13 14:50:03 +02:00
Michael Hackstein b54dae0d5b Fixed a memleak in newest shortest path shortcut implementation 2015-07-13 14:49:54 +02:00
Jan Steemann 14ccfbabc3 Merge branch 'aql-query-cache' of https://github.com/arangodb/arangodb into devel 2015-07-13 12:46:41 +02:00
Jan Steemann 5a453bbcfc issue #1409: Document values with null character truncated with 2.6.2 on Windows 2015-07-13 12:45:13 +02:00
Michael Hackstein df33ffe410 Added an implementation for shortest path which allows to take shortcuts iff we do not have to access the data, f.e. filtering or distances. Gives an enormous speedup. 2015-07-13 11:31:42 +02:00
Jan Steemann c71dc4d9bb Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-query-cache 2015-07-13 10:49:14 +02:00
Willi Goesgens bd7aa7c305 Remove the global include to iostream; this reduces the compile time by 10%
( http://herbsutter.com/2013/08/19/gotw-7a-solution-minimizing-compile-time-dependencies-part-1/  for inspiration)
2015-07-07 12:11:21 +02:00
Max Neunhoeffer c87575ce33 Fix bug in AssocMulti lookupByKeyContinue if batchSize==1. 2015-06-29 16:32:00 +02:00
Jan Steemann 8372c33993 fixed invalidation with index creation etc., adjusted tests 2015-06-25 23:40:31 +02:00
Willi Goesgens 641b6798a0 Fix grammer in docu 2015-06-24 17:42:39 +02:00
Jan Steemann 5e7dd0da7f Merge branch 'aql-argv-optimization' of https://github.com/arangodb/arangodb into devel 2015-06-18 17:12:14 +02:00
Jan Steemann 788f99980a Merge branch 'aql-parser-simplification' of https://github.com/arangodb/arangodb into devel 2015-06-17 15:15:40 +02:00
Jan Steemann 2a8192105a Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-argv-optimization 2015-06-17 12:41:38 +02:00
Jan Steemann 30ef155b16 issue #1313: escape whitespace in process name when scanning /proc/pid/stats
This fixes statistics values read from that file
2015-06-17 11:54:59 +02:00
Jan Steemann dec79dd051 pass function arguments by reference 2015-06-16 18:01:45 +02:00
Jan Steemann 7cd27d5c56 Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-parser-simplification 2015-06-16 15:14:18 +02:00
Michael Hackstein 933e4c353a Added further OOM tests for ShortestPath computation 2015-06-16 11:27:21 +02:00
Jan Steemann 5cac2938b1 exception handling 2015-06-16 09:37:02 +02:00
Jan Steemann e7ff3f2a19 Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-parser-simplification 2015-06-12 12:04:41 +02:00
Jan Steemann 1a18fb0282 factor out huge array/object literals when calling V8-based AQL functions 2015-06-12 11:50:22 +02:00
Jan Steemann ff7a00d6e4 fixed edge index selectivity estimates and added tests 2015-06-11 21:22:01 +02:00
Max Neunhoeffer 8ae33e04e7 Fix selectivity estimate by casting to double before division. 2015-06-11 11:50:51 +02:00
Jan Steemann 79ce6eb93b fixed threading issues 2015-06-11 09:50:56 +02:00
Jan Steemann d99d164c0a simplified parser 2015-06-10 20:25:25 +02:00
Jan Steemann f5f719360c added out-of-bounds checking for _heap and _history 2015-06-10 18:04:17 +02:00
Jan Steemann b5896be10b simplifications 2015-06-10 11:53:31 +02:00
Jan Steemann a6b2998b5d added try...catch blocks for V8-to-CPP bindings 2015-06-08 16:04:42 +02:00
Jan Steemann 4c7994597a cppcheck 2015-06-02 22:49:22 +02:00
Jan Steemann b44ae7b471 make Json smaller 2015-06-02 14:11:20 +02:00
Jan Steemann 39cf9c527c micro optimizations 2015-06-01 14:56:01 +02:00
Jan Steemann 2d2bf87a2d printers for standard objects 2015-05-29 17:49:19 +02:00
Jan Steemann 6d5b86867d added print methods 2015-05-29 11:45:01 +02:00
Jan Steemann db617fd514 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-05-29 09:49:31 +02:00
Jan Steemann 88198767dd logging 2015-05-29 09:49:22 +02:00
Willi Goesgens e1255b4e65 Fix signature of windows function dummy. 2015-05-29 09:28:27 +02:00
Michael Hackstein 6a7dae216d Merge branch 'devel' of github.com:/arangodb/arangodb into devel 2015-05-28 15:18:32 -07:00
Frank Celler c2db22e379 linux processor affinity 2015-05-28 14:51:32 +02:00
Frank Celler f5f8afea22 added empty affinity implementation 2015-05-28 13:51:34 +02:00
Michael Hackstein 6eadcb31ff Fixed a bug where the shortest path computation computed the correct distancebut returned a wrong path. It was only triggered under very special conditions 2015-05-27 13:42:21 -07:00
Jan Steemann a9f2769ffa now compiles and links 2015-05-23 04:31:13 +02:00
Jan Steemann 5a4eb1719f added missing declarations 2015-05-21 09:56:48 +02:00
Jan Steemann d4285fc6fd fix Visual Studio compile warnings 2015-05-20 16:12:30 +02:00
Jan Steemann 688b21fe51 fixed namespaces 2015-05-20 15:49:39 +02:00
Michael Hackstein 86c7f87dd3 Merge branch 'cppTrav2' into devel 2015-05-19 16:17:27 -07:00
Jan Steemann 77650c602b fixed wrong define 2015-05-19 15:58:38 +02:00
Max Neunhoeffer 0c6f5263d2 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-05-18 13:57:56 -07:00
Max Neunhoeffer e426ca9205 Fix bug in edge index. 2015-05-18 13:57:32 -07:00
Jan Steemann 82199b1d71 fixed format string for reading /proc/pid/stat 2015-05-18 12:17:32 +02:00
Jan Steemann 8670f2a36d Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-05-18 10:33:53 +02:00
Jan Steemann 30a9f44e64 please the VisualStudio compiler 2015-05-18 10:33:37 +02:00
Jan Steemann 96648678aa prevent memleak, disable debug output 2015-05-18 10:32:11 +02:00
Max Neunhoeffer 13204298d9 Make number of buckets in edge index configurable. 2015-05-17 19:04:47 -07:00
Max Neunhoeffer ead85dfd7c Use multiple buckets in AssocMulti hash. 2015-05-17 11:32:58 -07:00
Max Neunhoeffer fe7eb0d1ad Use high water mark 66% and low water mark 33% in edge index. 2015-05-16 13:58:44 -07:00
Max Neunhoeffer a2f9eee8fc Add performance logging to edge index resizing. 2015-05-16 10:02:41 -07:00
Max Neunhoeffer eef79e68eb Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-05-15 17:19:46 -07:00
Max Neunhoeffer 78bf0d2de3 Improve performance of edge index resize. 2015-05-15 17:16:14 -07:00
Max Neunhoeffer ca17b07dca C++-ify associative-multi and add hashCache, adapt edge index. 2015-05-15 16:37:56 -07:00
Jan Steemann b6142f475c micro optimizations 2015-05-15 17:40:41 +02:00
Jan Steemann c19352e4af adjusted timer output 2015-05-13 12:58:20 +02:00
Jan Steemann f8a4df2ad4 Merge branch 'edge-index-resize' of https://github.com/arangodb/arangodb into devel
Conflicts:
	lib/Basics/associative-multi.cpp
2015-05-13 12:52:38 +02:00
Willi Goesgens 421d9fbb9e Add performance logging for index building. 2015-05-13 10:49:38 +02:00
Jan Steemann ceecbf372f slight API change 2015-05-13 09:06:35 +02:00
Jan Steemann 8480c8b000 speed up resizing of edge index 2015-05-12 21:03:30 +02:00
Jan Steemann 2e75255ea6 added `--log.performance` startup option, removed `--log.severity` option 2015-05-12 12:48:13 +02:00
Jan Steemann 771f2db94b cleanup 2015-05-11 17:26:42 +02:00
Jan Steemann 6e08289511 added <array> 2015-05-08 17:32:30 +02:00
Jan Steemann e230b5a373 privatize vector->_memoryZone, too 2015-05-07 14:13:55 +02:00
Jan Steemann 6b412a1c01 Merge branch 'json-privatisierung' of https://github.com/arangodb/arangodb into json-privatisierung 2015-05-07 13:05:12 +02:00
Jan Steemann 0996d603c6 fulltext improvements 2015-05-06 14:21:32 +02:00
Jan Steemann e93225d7f5 fix cluster document fetching 2015-05-06 11:00:41 +02:00
Jan Steemann a007a867ee "privatized" TRI_vector_t internals.
This allows changing the internals of TRI_vector_t structs in order to make the struct smaller.
On 64 bits, the size of TRI_vector_t is reduced from 48 bytes to 28 bytes.
TRI_json_t does benefit from this, as its biggest component is a TRI_vector_t.
2015-05-05 10:31:02 +02:00
Alan Plum 4f17dfe10e Added error 1237: collection type mismatch. 2015-05-03 22:55:56 +02:00
Michael Hackstein ca0de62aa3 Moved all v8 context sensitive parts into from V8Traverser v8-vocbase 2015-05-02 21:46:54 -07:00
Max Neunhoeffer 8b8f81c25d Fix a nullptr dereferencing bug. 2015-05-02 07:03:32 +02:00
Max Neunhoeffer 97f7743d84 Less copying in Traverser. 2015-05-02 06:28:52 +02:00
Michael Hackstein 2ba5ee47df Made everything compile again 2015-05-01 17:21:15 -07:00
Michael Hackstein 91fa1cb6f8 Merge branch 'cppTrav3' of github.com:/arangodb/arangodb into cppTrav 2015-05-01 17:08:56 -07:00
Michael Hackstein 9edb48b1cf Made everything compile again 2015-05-01 17:07:02 -07:00
Michael Hackstein 0b65896500 User defined move constructor hell... 2015-05-01 17:00:43 -07:00
Michael Hackstein 73db004a85 Reduced string copy in traverser 2015-05-01 14:49:31 -07:00
Max Neunhoeffer 24d04148c8 Schaltbar. 2015-05-01 10:30:30 -07:00
Max Neunhoeffer a6bb266287 Fix a bug. 2015-05-01 01:24:53 -07:00
Max Neunhoeffer 679073cf25 First try of single-threaded search for shortest path. 2015-05-01 01:14:55 -07:00
Jan Steemann 0f521ebc37 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
Conflicts:
	arangod/Aql/Functions.cpp
2015-04-30 16:57:05 +02:00
Jan Steemann cb0ff510d6 slightly less copying 2015-04-30 16:50:08 +02:00
Jan Steemann 8dbcf0e23f Visual Studio adjustments 2015-04-30 11:46:55 +02:00
Max Neunhoeffer cc470f3e69 Small improvement of ReadWriteLockCPP11 code. 2015-04-30 01:30:11 -07:00
Max Neunhoeffer e9ec80f6ae Fix a bug in the cluster with locking under load. 2015-04-29 16:37:04 -07:00
Max Neunhoeffer 101b07e34e Use C++11 threads for Traverser. 2015-04-25 23:29:42 -07:00
Max Neunhoeffer f4857b6595 Merge branch 'cppTrav' of ssh://github.com/arangodb/arangodb into cppTrav 2015-04-25 22:52:25 -07:00
Max Neunhoeffer 68d2f200b8 Add a proof for this algorithm. 2015-04-25 22:52:09 -07:00
Max Neunhoeffer d1ab2a9d6f Make bidirectional switchable. 2015-04-25 21:48:33 -07:00
Max Neunhoeffer f1ff888088 Fix bidirectional switch. 2015-04-25 21:47:43 -07:00
Max Neunhoeffer cda687ef9b Make a bidirectional switch in Traverser. 2015-04-25 21:47:43 -07:00
Michael Hackstein 599240fb21 Removed couts 2015-04-25 21:47:43 -07:00
Max Neunhoeffer d46772dbca Add a cout. 2015-04-25 21:46:23 -07:00
Max Neunhoeffer e7683ea8da Switch on second thread. 2015-04-25 21:42:17 -07:00
Max Neunhoeffer 398a2c3d22 Do not create thread instance. 2015-04-25 21:42:17 -07:00
Max Neunhoeffer fbfe019913 Rename lookup() to find() 2015-04-25 21:41:45 -07:00
Max Neunhoeffer b09b2cc184 Disable bidirectional search for now. 2015-04-25 21:41:45 -07:00
Max Neunhoeffer e508a1697d Use new PriorityQueue, compiles, does not work. 2015-04-25 21:41:45 -07:00
Max Neunhoeffer 3fc8243432 Fix double occurence in result. 2015-04-25 21:40:45 -07:00
Max Neunhoeffer 5ccab6b3a8 Sort out mess with strange non-copying. 2015-04-25 21:40:44 -07:00
Max Neunhoeffer 2c5f56672c Snapshot. 2015-04-25 21:39:04 -07:00
Max Neunhoeffer e7e690913a Use our threads. 2015-04-25 21:38:07 -07:00
Michael Hackstein bf497d22b5 Added shortcut if there is no possible way for shortest path 2015-04-25 21:38:07 -07:00
Max Neunhoeffer b56901f4d5 New version of PriorityQueue. 2015-04-25 21:38:07 -07:00
Frank Celler 3c6801b559 Make it compile under Linux. 2015-04-25 21:38:07 -07:00
Michael Hackstein de699494af Fixed problem with thread construction for constant string 2015-04-25 21:38:07 -07:00
Michael Hackstein c1c98b16f6 Added version with broken threads. Computation is correct, but threads do not fire up 2015-04-25 21:36:24 -07:00
Max Neunhoeffer a553548d87 Add a new priority queue implementation.
This blends a deque and a binary heap to implement a priority queue as
it is useful for the shortest path search.
2015-04-25 21:35:40 -07:00
Michael Hackstein 6f81b0add1 Further implementation of Shortest Path. The Shortest path is found in cpp conversion to JS not yet working 2015-04-25 21:35:40 -07:00
Michael Hackstein 9f1830b4c5 Started implementing the Expander function. Not et finished does not compile but i am moving over to a new machine 2015-04-25 21:34:41 -07:00
Michael Hackstein 015c197e2a Proper class wrapping of Traverser. Started implemented dual-sided search algorithm. Implemented shered memmory access. Next up threads 2015-04-25 21:34:40 -07:00
Max Neunhoeffer 82594dcd5b Make bidirectional switchable. 2015-04-26 06:21:59 +02:00
Max Neunhoeffer aaa8e6a912 Fix bidirectional switch. 2015-04-26 03:33:55 +02:00
Max Neunhoeffer ce32d62094 Make a bidirectional switch in Traverser. 2015-04-26 03:32:01 +02:00
Michael Hackstein 40531fe6a6 Removed couts 2015-04-25 18:31:16 -07:00
Max Neunhoeffer 4d7b3d79db Add a cout. 2015-04-24 23:42:55 -07:00
Max Neunhoeffer 6fd2e9cf42 Switch on second thread. 2015-04-24 09:40:08 -07:00
Max Neunhoeffer 44a1554cfa Do not create thread instance. 2015-04-24 09:33:45 -07:00
Max Neunhoeffer b8ef4782ca Rename lookup() to find() 2015-04-24 08:59:51 -07:00
Max Neunhoeffer 589a32cda4 Disable bidirectional search for now. 2015-04-24 08:48:02 -07:00
Max Neunhoeffer d3d84385a1 Use new PriorityQueue, compiles, does not work. 2015-04-24 08:43:51 -07:00
Jan Steemann 3b09a018d5 fixed VS compile issues 2015-04-24 10:35:10 +02:00
Max Neunhoeffer b66c167ac7 Fix double occurence in result. 2015-04-24 00:32:07 -07:00
Max Neunhoeffer c55b62b609 Sort out mess with strange non-copying. 2015-04-24 06:45:39 +00:00
Max Neunhoeffer e30ae28ce5 Snapshot. 2015-04-23 22:24:59 -07:00
Max Neunhoeffer 68f4720c6b Use our threads. 2015-04-23 22:05:00 -07:00
Max Neunhoeffer 07d6653955 Merge branch 'cppTrav' of ssh://github.com/ArangoDB/ArangoDB into cppTrav 2015-04-23 19:58:51 -07:00
Michael Hackstein 3b13222f59 Added shortcut if there is no possible way for shortest path 2015-04-23 19:58:27 -07:00
Max Neunhoeffer 8884391da0 Merge branch 'cppTrav' of ssh://github.com/ArangoDB/ArangoDB into cppTrav 2015-04-23 19:57:39 -07:00
Max Neunhoeffer 4bdcfdb238 New version of PriorityQueue. 2015-04-23 19:56:18 -07:00
Frank Celler bb3fbff88a Make it compile under Linux. 2015-04-23 22:19:14 +00:00
Michael Hackstein 80e002cfc9 Fixed problem with thread construction for constant string 2015-04-23 15:18:56 -07:00
Jan Steemann 260554cb35 added encoding tests 2015-04-24 00:10:05 +02:00
Michael Hackstein 48e4fd55a8 Added version with broken threads. Computation is correct, but threads do not fire up 2015-04-23 13:40:41 -07:00
Jan Steemann 8d12f741bb issue #1315: Queries to a collection fail with an empty response if the collection contains specific JSON data 2015-04-23 20:20:58 +02:00
Jan Steemann 292e203b6b slightly faster JSON hashing 2015-04-23 18:03:38 +02:00
Jan Steemann ce8ed2cd6d slightly simplified TRI_DestroyJson 2015-04-23 16:17:48 +02:00
Jan Steemann 40ed49ebfa fast path for MERGE() 2015-04-23 13:45:31 +02:00
Max Neunhoeffer 570509a58a Merge branch 'cppTrav' of ssh://github.com/ArangoDB/ArangoDB into cppTrav 2015-04-22 23:42:20 -07:00
Max Neunhoeffer 261c6f7a5e Add a new priority queue implementation.
This blends a deque and a binary heap to implement a priority queue as
it is useful for the shortest path search.
2015-04-22 23:41:26 -07:00