1
0
Fork 0
Commit Graph

439 Commits

Author SHA1 Message Date
Frank Celler c501d2e0b4 fixed rollback 2013-03-12 14:26:16 +01:00
Jan Steemann 80f01892b7 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2013-03-12 12:56:03 +01:00
Jan Steemann 71b2587d96 added assertions for debugging 2013-03-12 12:55:52 +01:00
Frank Celler 1803f409b2 fixed skip list index
Conflicts:
	arangod/SkipLists/skiplistIndex.c
2013-03-12 11:13:22 +01:00
Jan Steemann 8888fe4cc5 dont truncate collection id in error message 2013-03-12 10:31:54 +01:00
Jan Steemann 9b688907f0 handle out of memory properly when open-iterating a collection 2013-03-12 10:26:35 +01:00
Jan Steemann 082244cbeb handle out of memory in voc-shaper 2013-03-12 09:20:56 +01:00
Frank Celler 8787bb7f00 replaced index update by remove/insert
Conflicts:
	arangod/HashIndex/hash-index.c
	arangod/VocBase/index.c
2013-03-11 14:23:23 +01:00
Jan Steemann 206681159f fixed memory zone mismatches 2013-03-11 11:10:08 +01:00
Jan Steemann 799d7f02ee fixed memory zones 2013-03-11 10:59:16 +01:00
Jan Steemann 6a4245b5c8 fixed deadlock 2013-03-11 10:37:17 +01:00
Jan Steemann d5855c0c1f fixed some memory zone mismatches 2013-03-11 10:25:09 +01:00
Frank Celler b8ef779aa7 fixed merge errors 2013-03-11 09:54:56 +01:00
Frank Celler c915bfa5ff cleanup of indexes, fix for compaction (hash, cap, geo)
Conflicts:
	arangod/VocBase/compactor.c
	arangod/VocBase/document-collection.c
	arangod/VocBase/synchroniser.c
	arangod/VocBase/vocbase.c
2013-03-11 09:49:58 +01:00
Jan Steemann cd753182f1 fixed doxygen errors 2013-03-08 16:56:52 +01:00
Jan Steemann 99630450c2 removed checks for TRI_HAVE_ICU because ICU is a prerequisite for using ArangoDB 2013-03-08 16:03:54 +01:00
Jan Steemann 0a883f4076 merged some changes from trx branch into devel 2013-03-08 14:22:25 +01:00
Jan Steemann 8a6bac82ad removed headers->verify() because it was a non-op 2013-03-08 13:36:48 +01:00
Jan Steemann 5631314bc7 issue #212: added auto-increment support for collections
the feature can be used by creating a collection with the extra `keyOptions`
attribute as follows:

    db._create("mycollection", { keyOptions: { type: "autoincrement", offset: 1, increment: 10, allowUserKeys: true } });

The `type` attribute will make sure the keys will be auto-generated if no `_key` attribute is specified for a document.
The `allowUserKeys` attribute determines whether users might still supply own `_key` values with documents or if this
is considered an error.
The `increment` value determines the actual increment value, whereas the `offset` value can be used to seed to value
sequence with a specific starting value. This will be useful later in a multi-master setup, when multiple servers can use
different auto-increment seed values and thus generate non-conflicting auto-increment values.

The default values currently are:

- `allowUserKeys`: `true`
- `offset`: `0`
- `increment`: `1`

The only other available key generator type currently is `traditional`. The `traditional` key generator
will auto-generate keys in a fashion as ArangoDB always did (some increasing integer value, with a more or less unpredictable
increment value).

Note that for the `traditional` key generator there is no the option to disallow user-supplied keys and give the
server the sole responsibility for key generation.
2013-03-08 11:54:03 +01:00
Jan Steemann b307e4cd6d completed auto-increment key generator 2013-03-08 10:51:50 +01:00
Jan Steemann 5732ab8378 reduce the size for each collection struct
"path" attribute now has a max length of 512 bytes instead of 4K
2013-03-07 18:17:52 +01:00
Jan Steemann 0879cf8d15 added auto-increment key generator (not yet ready) 2013-03-07 18:17:35 +01:00
Jan Steemann fbceb95f97 fixes 2013-03-06 17:38:31 +01:00
Jan Steemann 2a6180b5fe fixes 2013-03-06 17:10:52 +01:00
Jan Steemann bdf906ef89 fixed a memleak for barriers 2013-03-06 14:33:23 +01:00
Jan Steemann 5098792b4f fixed invalid pointers when compacting deletion markers
fixed invalid pointers for updates
2013-03-06 14:02:32 +01:00
Jan Steemann 01bf386e08 added test cases, fixed edge index key insertion 2013-03-06 09:38:59 +01:00
Jan Steemann 2734060026 when compacting old markers, also adjust _key 2013-03-04 12:05:14 +01:00
Jan Steemann 486c2120bf fixed key URLs in arangob CRUD test case 2013-03-01 17:54:13 +01:00
Jan Steemann f613c3c4d9 fixed race conditions when reading/deleting documents 2013-03-01 16:44:40 +01:00
Jan Steemann bacdbed093 more throughput with parallel deletes/inserts 2013-03-01 10:35:39 +01:00
Jan Steemann 8d496dd701 fixed memleaks in cause of collection loading errors 2013-03-01 10:10:41 +01:00
Oreste Panaia fc5e1ba623 merge conflicts with devel 2013-02-28 19:42:58 +08:00
Oreste Panaia a48696ec28 network modifications required for windows 2013-02-28 17:43:39 +08:00
Jan Steemann be9fefa9d0 fix warning in conditional compilation (--disable-logger) 2013-02-22 14:20:26 +01:00
Jan Steemann 216f04927b potential fix for issue #411 2013-02-18 10:35:32 +01:00
Frank Celler ced7b05cca added fix for TRI_ENABLE_LOGGING from Jan 2013-02-16 14:03:35 +01:00
Frank Celler 45c815b7eb fixed issue #403: Usage of exit() etc. 2013-02-15 12:19:09 +01:00
Jan Steemann d321f32523 moved some const value out of loop 2013-02-15 11:35:48 +01:00
Jan Steemann 0a00760907 performance patch, improving parallelity for concurrent document creation 2013-02-14 17:18:28 +01:00
Frank Celler dd1657a1f8 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-02-14 16:47:45 +01:00
Frank Celler 069dcdfc94 changed logging of fatal errors 2013-02-14 16:47:35 +01:00
Jan Steemann 72fea38943 fix compile warnings 2013-02-13 22:20:04 +01:00
Jan Steemann 8b79f6e2b6 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2013-02-13 18:05:44 +01:00
Jan Steemann 5c922cca02 fixed compile warnings with conditional compilation 2013-02-13 18:00:35 +01:00
Frank Celler 83ef8421c0 fixed padding for 32bit systems 2013-02-13 15:33:20 +01:00
Jan Steemann 8365c4294c small mods 2013-02-12 18:16:23 +01:00
Jan Steemann 861a2e6b25 issue #395 2013-02-12 11:46:55 +01:00
Jan Steemann ca81913abb added AQL function EDGES() 2013-02-07 22:53:50 +01:00
Jan Steemann 7273af5c53 fixed arango-dfdb to not segfault that often when reading corrupt datafile 2013-02-06 14:26:18 +01:00
Jan Steemann dbcc86171f added more crash-protection when reading corrupted collection files at startup 2013-02-06 12:34:53 +01:00
Jan Steemann f17629817a make getindexes and count nestable 2013-02-05 11:36:16 +01:00
Jan Steemann e06329db48 fix cross-collection queries in AQL 2013-02-05 10:56:28 +01:00
Jan Steemann 44f2d05b4c added explicit locking 2013-02-04 15:35:26 +01:00
Jan Steemann 8a6225865f removed lock classes 2013-02-04 14:40:14 +01:00
Jan Steemann de0b290bcd moved AQL to use AhuacatlTransaction 2013-02-04 11:25:03 +01:00
Jan Steemann 6c64dbd105 some more cleanup 2013-02-01 15:29:37 +01:00
Jan Steemann 9a1bac1d69 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2013-02-01 13:43:48 +01:00
Jan Steemann ca8935ae2a fix collection name handling in the face of parallel renames 2013-02-01 13:43:14 +01:00
Oreste Panaia 3c8093849a Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2013-01-31 00:07:19 +08:00
Oreste Panaia e0b7fbbf8d windows icu 2013-01-31 00:04:20 +08:00
Jan Steemann 0a2fe0e9a0 fix reload of duplicate key markers 2013-01-29 15:46:45 +01:00
Jan Steemann e8b0a548d6 removed tabs 2013-01-28 13:48:20 +01:00
Jan Steemann 17530a5e45 added number of shapes in return value of figures() 2013-01-25 10:19:02 +01:00
Jan Steemann 92abde4932 more tests for indexes to overcome getIndexes() mysteries (related to issue #366) 2013-01-23 10:43:20 +01:00
Jan Steemann 346e364767 issue #366 2013-01-23 10:28:00 +01:00
Jan Steemann 5d093576e2 fix a few -pedantic errors 2013-01-23 08:58:54 +01:00
Frank Celler f4814571ef Merge branch 'devel' of github.com:triAGENS/ArangoDB into 1.2 2013-01-22 16:07:32 +01:00
Frank Celler cc6644df6d added : to allowed characters in keys 2013-01-22 16:07:10 +01:00
Jan Steemann 376c264281 take precautions to prevent issue #365 2013-01-22 11:58:08 +01:00
Jan Steemann 8238a40de1 do not clip collection identifier 2013-01-21 16:58:51 +01:00
Jan Steemann 0f569ab303 make collections accessible by stringified id, too 2013-01-21 16:54:47 +01:00
Jan Steemann 65d637e488 removed some stuff for 1.2 2013-01-21 12:53:18 +01:00
Jan Steemann ba44906c24 fixed insertion into primary index when there were deleted documents 2013-01-21 12:05:03 +01:00
Jan Steemann 452a266475 fixed memory error 2013-01-18 17:56:38 +01:00
Jan Steemann 9a003247d0 removed the _bidirectional attribute for edges
This will be reimplemented later on collection, and not on individual edges level.
Lucas & the others were sure directed & undirected edges should not be mixed in the same collection
2013-01-18 17:02:30 +01:00
Jan Steemann 50a01424d6 fixed duplicate key insertion 2013-01-18 12:15:48 +01:00
Jan Steemann e509f92c5e added test cases for duplicate _key insertion 2013-01-18 11:11:22 +01:00
Jan Steemann bbade8c0b8 removed the non-working indexSubstrings property for fulltext indexing 2013-01-17 15:58:28 +01:00
Jan Steemann 945a437807 move creation of parameters file until after all datafiles have been created
this mitigates problems when datafile creation fails and there are dangling parameter.json files around
2013-01-16 16:40:10 +01:00
Jan Steemann f1fbb4796e fixed anonymous mmap for MacOS 2013-01-16 12:32:28 +01:00
Jan Steemann 7a6db16241 added db._version() 2013-01-15 16:44:48 +01:00
Jan Steemann 2e5f65a2ad speed up insertion into edges index 2013-01-15 15:13:34 +01:00
Jan Steemann 4818f22b21 fixes 2013-01-14 02:58:19 +01:00
Jan Steemann 5f2a6c803b do not show irrelevant warning 2013-01-13 13:18:57 +01:00
Jan Steemann 35a58d4a69 fixed db.collection.document(collection / key) 2013-01-13 12:38:12 +01:00
Jan Steemann 08a696a1a7 removed useless parameter 2013-01-12 01:26:52 +01:00
Jan Steemann 485d10ad51 added collection.revision() method 2013-01-10 02:02:32 +01:00
Jan Steemann 187d8ecc69 some transaction rework 2013-01-08 17:26:16 +01:00
Jan Steemann 69eb391e59 issue #346 2013-01-07 13:46:55 +01:00
Jan Steemann b310b832fd comments 2013-01-07 13:01:26 +01:00
Jan Steemann d76920443d added tests and documentation for volatile collections 2013-01-07 10:55:25 +01:00
Jan Steemann 36a3ebe2ae added comment about wait() 2013-01-07 09:44:54 +01:00
Jan Steemann 962f8ab6c9 reduced variable scope 2013-01-07 08:48:47 +01:00
Jan Steemann 51305de692 in-memory collections, seem to work now
documentation and some helper functions are still missing
2013-01-04 17:04:15 +01:00
Jan Steemann 0471ee8a0d memory collections, intermediate commit 2013-01-04 15:50:29 +01:00
Jan Steemann 8128a6377d memory-collections, intermediate commit 2013-01-04 12:12:46 +01:00
Jan Steemann e2efd9d35e remove memory usage for small collections 2013-01-03 10:54:44 +01:00
Frank Celler 503e0ff8fe fixed merge conflicts 2013-01-02 18:07:57 +01:00
Frank Celler f188357f83 added padding for 32bit 2013-01-02 17:07:44 +01:00