1
0
Fork 0
Commit Graph

7425 Commits

Author SHA1 Message Date
Jan Steemann fec29ac9c8 better compaction diagnostics 2015-12-09 19:02:22 +01:00
Michael Hackstein b8a9efbe33 Fixed a Illeagal memory access in BindParameters StripCollectionNames 2015-12-09 18:08:41 +01:00
Michael Hackstein 51da7ab7af Replication Applier configuration now uses a Destructor instead of TRI_Destroy. This commit is subject to inspection for memleaks 2015-12-09 16:29:14 +01:00
Max Neunhoeffer b76d7d6a0c Use new ObjectBuilder. 2015-12-09 15:45:52 +01:00
Michael Hackstein cfd1caf01c Replaced TRI_JsonReplicationApplier in RestHandler with velocpack 2015-12-09 15:25:14 +01:00
Michael Hackstein febd72e634 TRI_replication_applier_configuraiton_t is now a class no struct. Fixed headers 2015-12-09 15:24:41 +01:00
Michael Hackstein 5ef4782356 Added a toVelocyPack to replication_applier_configuration_t and wrapped all toJson functions around it 2015-12-09 15:24:08 +01:00
Max Neunhoeffer 7a91accb71 Merge branch 'devel' into ClustUp1 2015-12-09 15:19:11 +01:00
Jan Steemann 98a5badb08 cppcheck 2015-12-09 14:49:44 +01:00
Michael Hackstein 96efb89179 Removed unused function 2015-12-09 13:56:04 +01:00
Michael Hackstein 2eb5697864 Removing more and more TRI_json_t 2015-12-09 13:55:39 +01:00
Max Neunhoeffer 7931be71a0 Merge branch 'devel' into ClustUp1 2015-12-09 12:45:07 +01:00
Michael Hackstein f6e24e41e7 Merge branch 'devel' of github.com:arangodb/arangodb into vpack 2015-12-09 12:41:57 +01:00
Michael Hackstein 0738741cd1 Further removed references to TRI_json_t in RestReplication handler. This included a new toVelocyPack function for TRI_vocbase_col_t 2015-12-09 12:35:33 +01:00
Jan Steemann 37c032c694 fixed invalid read 2015-12-09 12:05:38 +01:00
Michael Hackstein 757577de42 Updated VPack addObject to openObject 2015-12-09 11:28:54 +01:00
Michael Hackstein acadb089ee Merge branch 'devel' of github.com:arangodb/arangodb into vpack 2015-12-09 10:29:13 +01:00
Michael Hackstein 44b806418f Merge branch 'vpack' of github.com:arangodb/arangodb into vpack 2015-12-09 10:28:16 +01:00
Michael Hackstein 7042542548 Fixed memleak for cluster Traverser edge data 2015-12-09 09:52:45 +01:00
Max Neunhoeffer c309c47981 Unuse std::atomic_load<shared_ptr> because gcc 4.9 does not have it. 2015-12-09 09:32:01 +01:00
Max Neunhoeffer 3f78b86492 Merge branch 'devel' into ClustUp1 2015-12-09 09:04:00 +01:00
jsteemann c99f4244c7 bugfix for cluster edges API 2015-12-09 00:26:18 +01:00
Wilfried Goesgens 4f4087a944 Fix link to the error codes 2015-12-08 23:45:36 +01:00
Max Neunhoeffer b00c253481 Merge branch 'devel' into ClustUp1 2015-12-08 23:22:38 +01:00
Max Neunhoeffer a0f6a3c9db Merge branch 'devel' into ClustUp1 2015-12-08 23:21:46 +01:00
jsteemann 18da212003 fixed edge handler response 2015-12-08 22:57:46 +01:00
Max Neunhoeffer f38d70844f Fix a corner case in index generation. 2015-12-08 21:32:06 +01:00
Max Neunhoeffer 588fddb53c Better error message instead of failed assertion. 2015-12-08 20:50:35 +01:00
Max Neunhoeffer ec4e37b2f9 Merge branch 'devel' into ClustUp1 2015-12-08 20:13:17 +01:00
Max Neunhoeffer a8bf9bd9ca Add a true argument. 2015-12-08 20:12:53 +01:00
Max Neunhoeffer 5465db463d Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-12-08 20:11:32 +01:00
Jan Steemann 4cd2621d06 adjusted AQL function return values 2015-12-08 19:45:32 +01:00
Max Neunhoeffer c7adab9088 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-12-08 18:54:26 +01:00
Max Neunhoeffer 6cedb210df First try to fix deadlock problem. Tests not yet tried. 2015-12-08 18:54:05 +01:00
Jan Steemann 76d5f57af0 Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-08 18:23:06 +01:00
Jan Steemann 6eb44f229e issue #1598: improved error reporting for dump/restore 2015-12-08 18:11:44 +01:00
Max Neunhoeffer 4e523a19ed Merge branch 'devel' into ClustUp1 2015-12-08 17:02:14 +01:00
Michael Hackstein 5300e7abca Merge branch 'vpack' of github.com:arangodb/arangodb into vpack 2015-12-08 16:11:45 +01:00
Jan Steemann 6ee813c65a fixed compaction 2015-12-08 16:08:25 +01:00
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
Jan Steemann ee6792dd6b fixes for traversal and multi-modify 2015-12-08 14:50:05 +01:00
Michael Hackstein 0a678263fb Fixed a bug when we start at an unknown vertex. THe cluster got into undefined states 2015-12-08 14:45:11 +01:00
Jan Steemann 14a7269278 make parameter explicit 2015-12-08 12:58:51 +01:00
Max Neunhoeffer 257c6c897d Fix bugs and tests. 2015-12-08 12:48:11 +01:00
Jan Steemann a3f42b5072 renamed test method 2015-12-08 11:49:45 +01:00
Michael Hackstein 7d90d583f0 Further movement of RestReplicationHandler to VPack. This state is not fully working 2015-12-08 10:31:47 +01:00
Michael Hackstein 6e23d46c65 Moved struct TRI_vocbase_col_t to a class. It now has functions to dump to VelocyPack 2015-12-08 10:30:40 +01:00
Jan Steemann 517f20b9a2 flushWait 2015-12-07 18:28:37 +01:00
Jan Steemann 04f3abae2a Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-07 16:51:21 +01:00
Jan Steemann dd87d775b5 added comment 2015-12-07 16:26:54 +01:00
Jan Steemann 94c60502a9 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-12-07 16:07:38 +01:00
Jan Steemann f707eddbcc added tests 2015-12-07 16:06:58 +01:00
Max Neunhoeffer 1396015f11 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-12-07 16:01:57 +01:00
Max Neunhoeffer 637a234660 Change a debug into an error. 2015-12-07 16:01:44 +01:00
Michael Hackstein dd21a42523 Fixed calls to index->toVelocyPack in RestReplicationHandler 2015-12-07 15:45:22 +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
Jan Steemann 1daeb7ad28 deadlock tests for drivers 2015-12-07 15:01:35 +01:00
Michael Hackstein 602c6a61c2 The Replication handler now uses the index->toVelocyPack functionality 2015-12-07 15:00:11 +01:00
Michael Hackstein 1969149ef3 Added a general toVelocyPack function for indexes 2015-12-07 14:54:38 +01:00
Max Neunhoeffer a674ff9629 Use no pretty printing in agency communication for VelocyPack. 2015-12-07 14:52:53 +01:00
Michael Hackstein 5c11280cec Started moving the RestReplication Handler from TRI_json_t to VelocyPack 2015-12-07 14:25:29 +01:00
Michael Hackstein 1c53e93865 Added some VelocyPack helper functions for Coordinators 2015-12-07 14:24:56 +01:00
Michael Hackstein b465921629 Adaption to new HttpRequest API 2015-12-07 14:24:42 +01:00
Michael Hackstein b78145f73f Added some VelocyPack helper functions for Coordinators 2015-12-07 14:24:21 +01:00
Michael Hackstein dd172d1776 Now allows to update a document with a VelocyPackSlice 2015-12-07 14:23:56 +01:00
Michael Hackstein 19343fb0da Added a helper function to init collection info from VelocyPack 2015-12-07 14:23:31 +01:00
Michael Hackstein 5dce6b512f Added a helper to build an index from VelocyPack description 2015-12-07 14:23:05 +01:00
Michael Hackstein 36c41c5e14 Added a helper function to transform VPack to shaped-json 2015-12-07 14:20:52 +01:00
Max Neunhoeffer 6141c61bf4 Merge branch 'devel' into ClustUp1 2015-12-07 13:44:13 +01:00
Max Neunhoeffer c11bdf9319 Two bug fixes. 2015-12-07 13:43:49 +01:00
Jan Steemann 9dd164eadc fix cluster upgrade 2015-12-07 11:57:46 +01:00
Jan Steemann e55199a27c fixed mismatched free/delete 2015-12-07 10:34:14 +01:00
Michael Hackstein f63535c142 Further reduced usage of TRI_json_t in RestImportHandler 2015-12-06 13:36:59 +01:00
Michael Hackstein 11dc6373d9 Reduced usage of TRI_Json_t in RestDocumentHandler and entirely removed it from RestEdgeHandler 2015-12-06 13:34:16 +01:00
Michael Hackstein 6b2f2451a6 Added wrappers to write/modify VelocyPack documents in a transaction 2015-12-06 13:32:43 +01:00
Michael Hackstein a814bc7414 Added a wrapper arround create/modify documents in cluster with JSOn for VelocyPack 2015-12-06 13:32:06 +01:00
Michael Hackstein 498c4395df Started moving ReplciationHandler to VPack 2015-12-06 12:57:58 +01:00
Michael Hackstein 72e7845166 Added a dummy dumpDocs VPack function. (Wraps around the TRI_json_t variant 2015-12-06 12:57:40 +01:00
Michael Hackstein 8317982983 Fixed imports. Moved from .h to .cpp 2015-12-06 12:56:11 +01:00
Michael Hackstein 07dae24edb Entirely removed TRI_json_t from VocbaseBaseHandler 2015-12-06 12:55:36 +01:00
Michael Hackstein 13a8f6871f Fixes in RestImport handler. It failed in some malformed input formats 2015-12-06 01:04:38 +01:00
Michael Hackstein e32b2e2d6f Largely removed references to TRI_json_t in RestImportHandler. Only needs temporary TRI_json_t's to interact with transactions 2015-12-05 13:01:55 +01:00
Max Neunhoeffer 23f7d9432c Finish createCollectionCoordinator change, not yet working. 2015-12-04 23:35:30 +01:00
Max Neunhoeffer a8a9f1832b Merge branch 'devel' into ClustUp1 2015-12-04 23:06:11 +01:00
Max Neunhoeffer fad55bda0e Another snapshot. 2015-12-04 23:05:45 +01:00
Michael Hackstein cc6283a349 Moved some references to TRI_json_t out of rest document handler 2015-12-04 18:18:15 +01:00
Michael Hackstein 4c2903ad44 Removed duplicated try {} catch in RestEdgesHandler 2015-12-04 18:17:26 +01:00
Michael Hackstein c5979d4ab3 Added a general catch block for bad_alloc for all RestHandlers 2015-12-04 18:16:56 +01:00
Jan Steemann 59e07db01a style 2015-12-04 18:04:43 +01:00
Michael Hackstein 6ebf72ee60 Removed usage of TRI_json_t in RestDocumentHandler. Could not yet eliminate it as ClusterMethods are not yet VPack compatible 2015-12-04 17:56:53 +01:00
Michael Hackstein 4bfb0c018f Removed now obsolete forward declaration of TRI_json_t 2015-12-04 17:26:25 +01:00
Michael Hackstein c9e07e3cf1 Merge branch 'vpack' of github.com:arangodb/arangodb into vpack 2015-12-04 17:22:00 +01:00
Michael Hackstein 712117e3ae Reduced usage of TRI_json_t in RestEdgeHandler. Now only builds it to pass it to the transaction 2015-12-04 17:21:51 +01:00
Jan Steemann 6fd4e9b1be Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-04 17:08:53 +01:00
Jan Steemann a53da38fcd fixed some cluster queries 2015-12-04 17:07:36 +01:00
Michael Hackstein fd00792ac1 Removed TRI_json_t constructor from TraverserExpression. It is only possible to be build from VPack 2015-12-04 16:49:49 +01:00
Michael Hackstein b137e9471e The RestEdgesHandler now uses VPack instead of TRI_json_t 2015-12-04 16:45:29 +01:00
Max Neunhoeffer 10ff104236 Another snapshot. 2015-12-04 16:08:02 +01:00
Jan Steemann c0def05b1b Merge branch 'vpack' of https://github.com/arangodb/arangodb into vpack 2015-12-04 15:53:08 +01:00
Jan Steemann 1a3ea99e95 fixed after signature changes 2015-12-04 15:52:40 +01:00
Michael Hackstein 35fbe9aefd Fixed include <array> did not compile under Mac Os X 2015-12-04 15:28:49 +01:00
Max Neunhoeffer 60df924ac1 Change data structures for collections in Agency.
Snapshot, compiles, untested, needs new VelocyPack.
2015-12-04 15:08:47 +01:00
Max Neunhoeffer a926c7570a Cleanup ClusterInfo library w.r.t. Current/Collections. 2015-12-04 15:08:47 +01:00
Jan Steemann 3b7cbef240 Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-04 13:50:42 +01:00
Jan Steemann 5c033f566b Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-04 13:47:08 +01:00
Michael Hackstein c60271d3c8 Fixed early optimizations of Cluster traversal filters, when document does not exist. Now behaves identical to single server and to execution without optimization 2015-12-04 13:30:40 +01:00
Jan Steemann 785beaa625 cppcheck 2015-12-04 12:18:15 +01:00
Michael Hackstein 9a724cd5a6 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-12-04 11:21:28 +01:00
Michael Hackstein 9495117238 Fixed invalid traversal optimization if vertex is not existing but filter would let null pass 2015-12-04 11:21:15 +01:00
Jan Steemann 3b1df26a79 added AQL function `IS_DATESTRING` 2015-12-04 10:53:01 +01:00
jsteemann f3e35b6497 updated grammar file 2015-12-03 23:26:28 +01:00
Michael Hackstein bf83a0e6a2 Potential fix for memleak 2015-12-03 16:08:33 +01:00
Michael Hackstein 11640a15ad Fixed a comment 2015-12-03 16:05:06 +01:00
Jan Steemann d8bf728fd3 added TRAVERSAL nodes for optimization checks 2015-12-03 15:25:16 +01:00
Jan Steemann 75a888d9ac Windows fixes 2015-12-03 15:06:20 +01:00
Jan Steemann b8cd633276 Windows fixes 2015-12-03 15:00:19 +01:00
Wilfried Goesgens c9e6e066fb one more missing file. 2015-12-03 14:16:59 +01:00
Wilfried Goesgens 650a7c6d7c Add missing file to the cmake build 2015-12-03 14:04:22 +01:00
Jan Steemann 46f1e4624d Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-12-03 13:46:23 +01:00
Jan Steemann ec3ab298e1 added test for traversal after data modification 2015-12-03 13:46:11 +01:00
Wilfried Goesgens 2377c4d628 Add new files to cmake. 2015-12-03 13:45:36 +01:00
Jan Steemann fdcc7adf03 fixed memleak for cluster databases 2015-12-03 12:18:13 +01:00
Jan Steemann 6c1717ec90 updated keywords list 2015-12-03 12:11:52 +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 86b4a7137d Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-12-03 11:35:33 +01:00
Michael Hackstein 605e1bce55 Style fixes 2015-12-03 11:35:18 +01:00
Michael Hackstein 04f65ff8c1 Fixed a memleak in ClusterTraverser 2015-12-03 11:35:08 +01:00
jsteemann 9caaff18fb fixed leaks 2015-12-03 11:25:05 +01:00
jsteemann eb5b68089e even more unconstification 2015-12-03 11:11:10 +01:00
jsteemann 135d434a7f more unconstification 2015-12-03 11:09:35 +01:00
jsteemann 7892c98996 unconstify return types 2015-12-03 11:06:25 +01:00
Michael Hackstein e6fffda489 Merge branch 'JHMH' of github.com:arangodb/arangodb into devel 2015-12-03 10:26:56 +01:00
Michael Hackstein 8919a068ba Adapted to new API of cluster async request 2015-12-03 10:24:01 +01:00
Michael Hackstein 3ea14e66a3 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-12-03 10:19:17 +01:00
jsteemann 840df0bf09 Merge branch 'devel' of https://github.com/arangodb/arangodb into aql-multi-modify 2015-12-03 10:16:59 +01:00
Max Neunhoeffer 16e181fe05 Adjust comments to reality for asyncRequest. 2015-12-03 09:23:15 +01:00
Jan Steemann c0729fbc6b allow calling AQL functions that require collection name arguments with string values 2015-12-02 18:20:21 +01:00
Michael Hackstein b2e4673c65 Added a test for early filtering of < <= => > in Traversal 2015-12-02 17:52:01 +01:00
Michael Hackstein 23e2ac5da7 Fixed status reporting for Cluster and Single Server Case for the AQL Traverser Node. 2015-12-02 17:20:09 +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 3a7eca45b8 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2015-12-02 15:41:51 +01:00
Jan Steemann df946dd3c4 use emplace() 2015-12-02 15:41:41 +01:00
Jan Steemann 61a8e4c686 issue #1593: add POW() AQL function 2015-12-02 15:41:30 +01:00
Jan Steemann 460b51734e fixed disappearing of documents for collections transferred via `sync` if the collection was dropped right before synchronization and drop and (re-)create collection markers were located in the same WAL file 2015-12-02 14:48:08 +01:00
Max Neunhoeffer 3821a775a3 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-12-02 14:48:04 +01:00
Max Neunhoeffer 3556f76469 Fix ClusterComm::asyncRequest w.r.t. body shared_ptr. 2015-12-02 14:15:18 +01:00
Michael Hackstein e47ebdd48d Fixed statistics reporting for AQL traversal in Cluster. The tests are green in cluster mode now. 2015-12-02 13:41:24 +01:00
Michael Hackstein 10a898c791 UTF-8 circus 2015-12-02 13:37:49 +01:00
Michael Hackstein 18db3bf681 The edges api now returns a stats property encapsulating how many items where scanned and how many where filtered 2015-12-02 11:38:51 +01:00
Michael Hackstein 043de86039 Fixed compareTo value send accross the cluster. Was deleted after first use but was sent multiple times 2015-12-02 11:37:23 +01:00
Michael Hackstein 3891d0a268 Fixed illegal no results optimization in traversal nodes. Also changed internal format for the reported graph 2015-12-02 11:36:44 +01:00
Michael Hackstein c109c86b06 Indention fix 2015-12-02 11:35:12 +01:00
Michael Hackstein 1a13af6f36 Merged remote changes with local stash 2015-12-02 11:34:58 +01:00
Jan Steemann eb8899d9ae applied changes suggested by cppcheck 2015-12-02 10:17:14 +01:00
Jan Steemann 6ce29823a8 fixed more memleaks 2015-12-01 17:22:14 +01:00
Jan Steemann 9497ca9c7c fixed memleaks 2015-12-01 17:07:32 +01:00
Jan Steemann e05cd2df37 Merge branch 'JHMH' of https://github.com/arangodb/arangodb into JHMH 2015-12-01 16:49:08 +01:00
Jan Steemann 2bbcaa868f fixed invalid memory usages 2015-12-01 16:48:55 +01:00
Wilfried Goesgens 4b861dd44a Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-12-01 16:37:06 +01:00
Jan Steemann 9c0d7420f4 removed unused struct attribute 2015-12-01 12:56:41 +01:00
hkernbach 6d25ac57e9 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-12-01 11:25:58 +01:00
Jan Steemann 0dd207f9f5 Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-12-01 11:14:12 +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
jsteemann e7e00e95c1 some cleanup 2015-12-01 01:26:27 +01:00
jsteemann 3a73ec1a52 optionally trigger auto-resync in case of "no start tick" issue 2015-12-01 01:22:19 +01:00
jsteemann 04e81ea851 more replication 2015-11-30 23:33:59 +01:00
jsteemann 37f72fa721 micro optimizations 2015-11-30 19:37:58 +01:00
Jan Steemann f013c809ea replication improvements 2015-11-30 18:27:31 +01:00
Michael Hackstein 0fa55cff05 Fixed a bug in TraverserExpression deserialisation 2015-11-30 16:29:16 +01:00
Michael Hackstein 2c61930752 Enabled the CXX RestEdges Handler in coordinator case as well 2015-11-30 15:10:13 +01:00
Max Neunhoeffer f7e0b53fff Fix AQL query shutdown in cluster. 2015-11-30 14:24:31 +01:00
Michael Hackstein e9a36a3fbf Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-30 14:17:44 +01:00
Michael Hackstein 43ac825241 The CXX Edges handler now first checks if the collection is an edge collection 2015-11-30 14:17:13 +01:00
Michael Hackstein 0ab087c764 Added an internal filter option for lookup-by-keys. It is used by AQL traversel to move vertex filtering to the server 2015-11-30 13:29:31 +01:00
Michael Hackstein 73669ae774 Implemented a short-cut to query a list of documents by _id in the cluster. It's baby-aware 2015-11-30 13:27:22 +01:00
Michael Hackstein ceddc4d7f4 Added a convenience check to evaluate if a collection uses default shardKeys 2015-11-30 13:26:42 +01:00
Jan Steemann 593b5dc8df fixed non-deterministic query results in some cluster queries 2015-11-30 13:01:57 +01:00
Jan Steemann 5acd13e8e9 fixed assertion failure in some cluster queries 2015-11-30 12:48:26 +01:00
Jan Steemann 4e33bda538 fixes for new replication features 2015-11-30 12:46:26 +01:00
Jan Steemann e3c7760262 indentation 2015-11-30 12:46:01 +01:00
Michael Hackstein d79c2f9048 Added a test if the traverser prunes early 2015-11-27 17:03:24 +01:00
Michael Hackstein a7b7d1ec18 Adapted traverser implementations to new Path Enumerator for improved pruning 2015-11-27 16:25:02 +01:00
Michael Hackstein d0021131b5 Document accessor now works on TRI_json_t as well 2015-11-27 16:24:29 +01:00
Michael Hackstein 5a8b6ad721 Fixed out of scope when requesting edges in cluster 2015-11-27 16:24:08 +01:00
Jan Steemann b13284a0c3 replication improvements 2015-11-27 16:16:31 +01:00
Jan Steemann bd8b70455a replication improvements 2015-11-27 16:16:15 +01:00
Wilfried Goesgens 55b8fb0c6f Fix links not to point to .html - .md is right, else the non-html generators won't work properly. 2015-11-27 11:51:29 +01:00
Michael Hackstein 07f772c758 Fixed potential memleaks and bad access in edges api 2015-11-27 11:20:54 +01:00
Michael Hackstein bba4fe6089 Added a basic implementation to receive filtered documents in the cluster. Right now it does not yet filter and is inefficent but serves the API 2015-11-27 11:20:12 +01:00
Jan Steemann dea7a3f56f fixed API 2015-11-26 17:41:58 +01:00
Jan Steemann a66368e10c Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-26 17:13:33 +01:00
Michael Hackstein 7c4e59bf22 Revert "removed unused method" it is actually used in the new Graph
Traverser

This reverts commit 5d2951a15b.
2015-11-26 16:38:44 +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 389c3e0cf0 small optimizations 2015-11-26 16:31:25 +01:00
Michael Hackstein cda189d5ca Unvirtualized toJson of Traversal Node. Base Class toJson is required in Cluster. Explainer requires specific toJson 2015-11-26 16:02:38 +01:00
Michael Hackstein 7290507c25 Removed debug output 2015-11-26 16:01:26 +01:00
Michael Hackstein 14f68cc648 Adopted implementation of filteredEdges in cluster 2015-11-26 16:01:10 +01:00
Jan Steemann 15368d12ba added a C++ implementation for AQL function `FULLTEXT` 2015-11-26 14:12:43 +01:00
Richard Parker bad2ed09e7 Cursor functionality written, compiles but totally untested. 2015-11-26 13:03:46 +00:00
Michael Hackstein d109a4e2aa Filtered edges are now able to react to a list of expressions instead of only one expression. The list symbolises an AND 2015-11-26 11:38:09 +01:00
Michael Hackstein 5fb76d7481 Merge branch 'JHMH' of github.com:arangodb/arangodb into JHMH 2015-11-26 09:32:15 +01:00
Michael Hackstein e9a7c6fa85 Adoption of Traversal and AstNode to newest changes in TraversalExpression 2015-11-26 09:31:54 +01:00
Michael Hackstein 38cf7dc8ed First implementation of a filtered edges API. This is for cluster internal use only. 2015-11-26 09:26:46 +01:00
Michael Hackstein a12f390e77 Added a Json constructor for Traverser Expression. Required in the cluster 2015-11-26 09:20:58 +01:00
Jan Steemann 9b23953a07 add primary index lock 2015-11-25 17:40:21 +01:00
Wilfried Goesgens f49ae38f25 make toJson() virtual so derived ones can overload it. 2015-11-25 16:49:38 +01:00
Wilfried Goesgens 42081165e0 Don't copy while iterating, use const references. 2015-11-25 16:49:01 +01:00
Wilfried Goesgens 8f04b616b5 fix typo 2015-11-25 16:48:35 +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
Wilfried Goesgens 513404e9e8 Split searching for conditions and extracting them for analysis, so we can run the optimizer inbetween. 2015-11-25 15:22:45 +01:00
Wilfried Goesgens a0f9524df8 Add routine to normalize conditions without re-running the optimizer. 2015-11-25 15:22:11 +01:00
Wilfried Goesgens c061a3309a - implement new function that scans for nodes of a spcific types
- fix scanning for variable references with n-nary ors / ands
2015-11-25 15:21:11 +01:00
Jan Steemann 981c578812 changed other index APIs 2015-11-25 15:05:02 +01:00
Jan Steemann 5d2951a15b removed unused method 2015-11-25 14:59:43 +01:00
Jan Steemann 0ee556d07d added transaction to hash index APIs 2015-11-25 14:55:43 +01:00
Jan Steemann 19b2d28167 pass transaction to index APIs 2015-11-25 14:42:29 +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 9d217b92ce improved DocumentAccessor 2015-11-25 11:43:01 +01:00
Jan Steemann a7c8a37938 use range-based for loop 2015-11-25 11:05:31 +01:00
Jan Steemann 9b1ef915eb issue #1589 2015-11-25 10:49:31 +01:00
Alan Plum 7538d71333 URL parameter -> {query,path} parameter 2015-11-24 18:09:43 +01:00
Jan Steemann 75e4e6e815 added transaction to all signatures 2015-11-24 17:34:23 +01:00
Jan Steemann 5518244942 less iostream-ing 2015-11-24 13:55:06 +01:00
Jan Steemann 442a5f25c6 added convenience functions 2015-11-24 13:25:18 +01:00
Jan Steemann 317ef4b8a2 remove, not working yet 2015-11-24 11:30:15 +01:00
Michael Hackstein bcd5813bb1 CXX RestEdgesHandler now actually returns a result. All tests are green now 2015-11-24 10:47:07 +01:00
Jan Steemann b9f04ec5eb Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-24 10:33:58 +01:00
Michael Hackstein 4c8c98524e Fixed errorNum whenever the vertex-handle is incorrect 2015-11-24 10:30:16 +01:00
Michael Hackstein aa8e1daaf7 Moved String->VertexId conversion into the general traverser. It is required outside of V8Server 2015-11-24 10:24:19 +01:00
Michael Hackstein 430eb2fd07 First version of CXX RestEdgesHandler. Required for early filtering in Cluster Traversals 2015-11-24 10:23:35 +01:00
Michael Hackstein 561ef30ac1 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-24 08:59:01 +01:00
Jan Steemann bd090571fb insertion of documents using vpack 2015-11-23 18:34:36 +01:00
Wilfried Goesgens e34f3824a5 Add link to the reference 2015-11-23 14:01:42 +01:00
Jan Steemann 7bd6a00c84 changed API 2015-11-23 13:26:33 +01:00
Jan Steemann 6192ff6ac1 fixed test 2015-11-23 12:41:17 +01:00
Jan Steemann b08e1a76bc Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-23 12:06:29 +01:00
Jan Steemann 1bf5abaf14 changed HTTP return code for canceled operations from 408 to 410 2015-11-23 10:25:05 +01:00
Michael Hackstein b18ce56a68 Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-20 10:49:00 +01:00
Wilfried Goesgens a5c50ad8e9 we have to flush the work vectors before we invoke findVariableAccess() 2015-11-19 17:21:33 +01:00
Jan Steemann 982568aec7 insertv 2015-11-19 16:52:39 +01:00
Jan Steemann bcb31ab4c2 insertv continued 2015-11-19 16:46:06 +01:00
Wilfried Goesgens 16eee4793d Improve error reporting if selecting a graph description fails 2015-11-19 16:27:36 +01:00
Jan Steemann 08d817ba53 Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-19 14:36:11 +01:00
Jan Steemann bc3bbc46b5 fixed Visual Studio warnings 2015-11-19 14:29:49 +01:00
Jan Steemann 59084c193d Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-19 13:28:57 +01:00
Jan Steemann 89e0f887b9 velocypack update 2015-11-19 13:28:40 +01:00
jsteemann 19373f80fa removed dependency on vector.h 2015-11-19 01:41:42 +01:00
jsteemann f900090584 fixed undefined behavior 2015-11-19 00:16:00 +01:00
jsteemann cb62c657e0 initial commit 2015-11-18 17:46:19 +01:00
Michael Hackstein 001dd4debf The local traverser now early filters on vertices 2015-11-18 16:14:17 +01:00
Michael Hackstein 201c54e6b0 Removed unnecessary constructors 2015-11-18 15:32:04 +01:00
Michael Hackstein ff732237fc Fixed compilation error 2015-11-18 15:31:50 +01:00
Michael Hackstein 6b8b039fe6 Added implementation for binary comparison aperators in the TraversalExpression 2015-11-18 15:23:36 +01:00
Michael Hackstein 1f6519b01e Using early abortion in local Traverser for AQL. Now it's cluster time 2015-11-18 14:50:03 +01:00
Michael Hackstein 57afbb31bf Merge branch 'devel' of github.com:arangodb/arangodb into JHMH 2015-11-18 14:00:24 +01:00
Jan Steemann 9e5308fb43 make it a struct 2015-11-18 14:00:07 +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 6f262b6083 added DocumentAccessor 2015-11-18 13:58:14 +01:00
Michael Hackstein f880592025 Used the TraverserExpression in Local case for Edges. Right now it fails hardcoded. 2015-11-18 11:26:55 +01:00
Michael Hackstein 9a42870b6b Fixed BAD_ACCESS 2015-11-18 09:41:41 +01:00
Michael Hackstein d002ccccff Deactivated late complete condition check in AQL Traverser 2015-11-18 09:41:25 +01:00
Michael Hackstein 508b63803c Improved error message AQL execute 2015-11-18 09:40:54 +01:00
Max Neunhoeffer eec37d1e8b Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-11-17 17:17:10 +01:00
Max Neunhoeffer 68941c1ea9 Fix a typo in a variable name. 2015-11-17 17:16:59 +01:00
Michael Hackstein 0adbef4f76 Transformed the TraversalExpression vector into a map ordered by access level. This is way more convenient on the Traverser side to be used. 2015-11-17 16:25:45 +01:00
Michael Hackstein 3afddb32ed The TraversalBlock now executes all expressions locally. It is able to hand them over to Traversers 2015-11-17 14:11:15 +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 c690e91d77 improved error messages 2015-11-17 12:15:18 +01:00
Max Neunhoeffer 48c121bb24 Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2015-11-17 11:46:19 +01:00
Wilfried Goesgens 5428ac0682 Broaden the range of expressions we can push out into the cluster as simple expression. 2015-11-17 11:34:45 +01:00
Michael Hackstein a5273e8fec Preperation for DBServer local filtering 2015-11-17 11:01:51 +01:00
Michael Hackstein 2d9f466f38 Minor style fixes 2015-11-17 10:35:32 +01:00
Jan Steemann 4c0dca210a Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack 2015-11-17 10:29:56 +01:00
Michael Hackstein 3845f8b7eb Merge branch 'JHMH' of github.com:arangodb/arangodb into JHMH 2015-11-17 08:54:59 +01:00
jsteemann f5e71197ce document creation 2015-11-17 01:46:58 +01:00
jsteemann 5f25de1710 implementation for custom type handling 2015-11-16 23:55:06 +01:00
jsteemann 8dbcf9e940 error message adjustment 2015-11-16 21:53:05 +01:00
Michael Hackstein 6572806300 Fixed ClusterTraverser if there is a vertex without edges 2015-11-16 20:24:10 +01:00
Michael Hackstein 5eaf990405 Fixed converting VertexId -> String in Cluster 2015-11-16 20:13:44 +01:00
Michael Hackstein 4c45e3fb5a Fixed a bug when using edge collections in Traversal 2015-11-16 19:48:20 +01:00
Michael Hackstein 3926e82247 Added an otion to extract the collection type in a cluster with the CollectionNameResolcer 2015-11-16 19:47:50 +01:00
Wilfried Goesgens ed7ba7f573 append javascript stacktraces to the errormessage, so the caller of AQL-JS function can find out where it broke 2015-11-16 16:59:15 +01:00
Wilfried Goesgens 5dd70c78c0 Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH 2015-11-16 15:55:33 +01:00
Wilfried Goesgens c2fcef77e6 remove p.edges[*].foo detection, we can't handle this. 2015-11-16 15:43:54 +01:00
Michael Hackstein 21cf784cbc First attempt for multi collection graphs. Not yet functional. 2015-11-16 15:36:00 +01:00
Jan Steemann 6a6358121e added ostream handlers 2015-11-16 15:05:33 +01:00
Michael Hackstein e8cdc5190f Single Collection Traversals are now functional within the cluster. 2015-11-16 14:55:07 +01:00
Michael Hackstein b391d9cb22 Fixed a bug when the cluster iterates over more than one edge 2015-11-16 13:20:32 +01:00
Michael Hackstein fa4b08a4b8 Further implemenetation for ClusterTraverser. It now returns the correct format. However there seems to be an undefined state which can be reached 2015-11-16 11:37:29 +01:00
Michael Hackstein 85233c366c Added a convenience function to transofmr VertexId to std::string 2015-11-16 09:13:28 +01:00
Michael Hackstein 3923c7936e EdgeCollections are now evaluated to cids later in TraversalBlock. This change was necessary for the Cluster 2015-11-16 09:09:34 +01:00
Jan Steemann b0ea7dd562 added V8ToVPack conversion 2015-11-13 17:27:35 +01:00
Michael Hackstein eec9c02a36 Merge branch 'JHMH' of github.com:arangodb/arangodb into JHMH 2015-11-13 17:12:36 +01:00
Michael Hackstein 04da539ba1 Further implementation of Cluster Traverser. It now has code that in theory should fetch the first set of edges. Right now it fails for undefined collection name 2015-11-13 17:12:33 +01:00
Wilfried Goesgens 418ddc4dd5 Implement simple condition extractor 2015-11-13 16:49:12 +01:00
Jan Steemann d45ef6d699 marker definitions 2015-11-13 16:22:14 +01:00