1
0
Fork 0
Commit Graph

743 Commits

Author SHA1 Message Date
Guido Reina 7efd0a1ec7 Merge remote branch 'remotes/upstream/devel' into experiment 2013-05-09 18:56:50 +02:00
Guido Reina 3449b87e2c The 'json' structure was not freed in the function TRI_LoadCollectionInfo() if the file was not a JSON array. 2013-05-09 18:26:24 +02:00
Guido Reina d35a4034ef Memory leak in the function ScanPath() if the directory is not writable. 2013-05-09 18:00:43 +02:00
Guido Reina e0c88e4a1a In the function TruncateAndSealDatafile(), 'filename' and 'oldname' were not freed. If TRI_UNMMFile() failed, the file was not closed.
In the function OpenDatafile(), if TRI_Allocate() failed to allocate memory for 'datafile', the file was not unmapped and not closed.
2013-05-09 16:43:20 +02:00
Guido Reina 952d643101 Fixed memory leak in the function ScanCollectionDirectory(). If the file extension is .db and it is a compaction file, 'filename' is leaked when 'newName' is assigned to it.
In the function TRI_LoadCollectionInfo(), when the value's type is a JSON string and the key is not the 'name', it checked again whether the value's type is a JSON string, instead of comparing the key with 'cid'.
2013-05-09 16:06:46 +02:00
Guido Reina fc9de8ed08 Typos. 2013-05-09 14:16:53 +02:00
Jan Steemann ccd129f69e fixed problem on restart ("datafile-xxx is not sealed") when server was killed during compaction 2013-05-08 11:09:48 +02:00
Jan Steemann 8ad21ec2cf fixed cursor leak for very small batch sizes 2013-05-07 18:48:41 +02:00
Jan Steemann 75ee749d78 read and write server SHUTDOWN files for faster startups
added documentation about server files
2013-05-03 18:30:17 +02:00
Jan Steemann 00f5cab407 changed compaction to only clean datafiles with at least 10 % of dead objects 2013-05-03 16:37:32 +02:00
Frank Celler b3b7a45e62 issue #502 2013-05-02 15:21:30 +02:00
Jan Steemann 2c381d5d6a issue #498 2013-05-02 12:27:06 +02:00
a-brandt 43aec7e76b Merge branch 'devel' of github.com:triAGENS/ArangoDB into multiple_databases 2013-04-30 10:05:53 +02:00
Oreste Panaia 115d87196c sync windows dev 2013-04-29 23:13:06 +08:00
Oreste Panaia 532c7eae8e windows dev update 2013-04-29 21:24:57 +08:00
Oreste Panaia 1ddbd2e4d9 update 2013-04-23 19:02:46 +08:00
Oreste Panaia b83d90f021 skiplist transaction support 2013-04-23 18:56:26 +08:00
a-brandt 234b1460f8 Merge branch 'devel' of github.com:triAGENS/ArangoDB into multiple_databases 2013-04-23 09:55:08 +02:00
Frank Celler cbc2ab93ba fixed _shallowCopy, fixed creating of unknown attributes 2013-04-22 16:48:36 +02:00
a-brandt 7a0a9ff3b4 Merge branch 'devel' of github.com:triAGENS/ArangoDB into multiple_databases 2013-04-22 14:53:33 +02:00
Jan Steemann cdb7705380 issue #481 2013-04-21 12:12:51 +02:00
Jan Steemann cd17f1ef44 issue #481 2013-04-21 11:37:46 +02:00
Jan Steemann 8ea6915b55 added IndexedPropertyGetter for ShapedJson 2013-04-19 11:35:55 +02:00
a-brandt 7c0e5fb16f Merge branch 'devel' of github.com:triAGENS/ArangoDB into multiple_databases 2013-04-18 12:01:47 +02:00
Jan Steemann 91c63338f2 some locking fixes 2013-04-17 18:02:55 +02:00
a-brandt 58de325e98 Merge branch 'devel' of github.com:triAGENS/ArangoDB into multiple_databases 2013-04-17 16:58:23 +02:00
a-brandt fcae2b2961 added RequestContext 2013-04-17 16:56:48 +02:00
Jan Steemann 2914a1a319 fixed assertion 2013-04-15 13:05:31 +02:00
Jan Steemann 8e4af7a952 fixed some locking 2013-04-15 12:43:53 +02:00
a-brandt 3c4fb08548 Merge branch 'devel' of github.com:triAGENS/ArangoDB into multiple_databases 2013-04-12 15:04:46 +02:00
Jan Steemann fb522e7c59 added TRI_DocumentIteratorPrimaryCollection 2013-04-12 15:03:03 +02:00
a-brandt 0a44b019db Merge branch 'devel' into multiple_databases 2013-04-12 14:16:25 +02:00
a-brandt aa216c2edb changes for multiple databases 2013-04-12 14:15:06 +02:00
Jan Steemann 74a7733867 removed unused file 2013-04-12 11:43:51 +02:00
Jan Steemann 430db4e0f0 ignore some obviously invalid markers 2013-04-12 11:39:05 +02:00
Jan Steemann 5257e22f5e fixed warning messages 2013-04-12 10:59:20 +02:00
Jan Steemann 3629eecddd documented upgrade procedure 2013-04-12 10:25:01 +02:00
Jan Steemann 9b5849f650 updated documentation 2013-04-12 00:42:02 +02:00
Jan Steemann 5a41aae8d4 fixed memory zone 2013-04-11 21:03:30 +02:00
Jan Steemann b64ee0cbdc fixed ifdefs 2013-04-11 19:18:54 +02:00
Jan Steemann e128b40735 fixed gcc warnings 2013-04-11 19:11:09 +02:00
Jan Steemann b6925a7b7b transactions 2013-04-11 19:06:55 +02:00
Jan Steemann d752d2cc57 fixed tests 2013-04-05 13:05:43 +02:00
Jan Steemann 6187c516a3 push before compactor change 2013-04-04 11:15:58 +02:00
Jan Steemann addf02a97b update the tick counter on startup with ticks from journals 2013-04-04 10:08:05 +02:00
Jan Steemann b3b2602885 adjusted wording and log-level 2013-04-04 09:47:21 +02:00
Jan Steemann 059980ed50 read & write collection ids as strings in parameter.json files 2013-04-04 08:49:40 +02:00
Jan Steemann af1ed1e0f0 fixed some race conditions in transactions 2013-04-03 18:43:13 +02:00
Jan Steemann f7a5cf4cf3 transactions 2013-04-03 14:40:23 +02:00
Jan Steemann ab9baf2f9b moved include 2013-04-03 08:30:50 +02:00
Frank Celler f810711a79 FreeBSD port 2013-04-02 18:43:10 +02:00
Frank Celler 42b92c794f fixed error messages and tests 2013-04-02 17:46:19 +02:00
Jan Steemann 666eae6b41 allow writing too big markers into collections if maximalJournalSize is bigger than current datafile's size 2013-03-28 14:41:40 +01:00
Jan Steemann 6b3b181930 pass transaction collection into CRUD operations 2013-03-28 13:26:49 +01:00
Jan Steemann a5c1ebd09d more cleanup 2013-03-26 17:57:45 +01:00
Jan Steemann 0e6c21e4e7 removed NEW_BORN collection status in server 2013-03-25 15:51:42 +01:00
Jan Steemann 0d41462823 added statistics function 2013-03-25 12:54:36 +01:00
Jan Steemann 54dbcb8121 fixed some caching issues 2013-03-25 12:23:42 +01:00
Jan Steemann d62a3a08a1 shutdown with lock 2013-03-25 11:11:33 +01:00
Frank Celler 57e7224494 fixed ordering 2013-03-23 17:54:35 +01:00
Jan Steemann c473e42f77 fixed memleak 2013-03-22 18:38:17 +01:00
Jan Steemann 517c6f98dc document counting 2013-03-22 15:45:36 +01:00
Jan Steemann 564f35141e refactored writing of markers 2013-03-22 14:50:32 +01:00
Jan Steemann 28e0f8bd09 notify collections about transaction status changes 2013-03-22 13:34:02 +01:00
Jan Steemann ccc7c3665b locking 2013-03-22 11:31:36 +01:00
Jan Steemann 228f273bc0 added isRollback hints to index insert/remove functions 2013-03-22 11:18:44 +01:00
Jan Steemann 69db58a154 index cleanup 2013-03-22 10:38:47 +01:00
Jan Steemann a9ab2695d6 changed error message 2013-03-22 09:00:29 +01:00
Jan Steemann 9b282ab74c some cleanup of transaction code 2013-03-21 18:54:38 +01:00
Jan Steemann b40ade45ce simplified code 2013-03-21 10:09:52 +01:00
Jan Steemann b175486258 changed to TRI_ASSERT_DEBUG 2013-03-20 19:01:19 +01:00
Jan Steemann 26af2995db some cleanup in transaction code 2013-03-20 18:44:29 +01:00
Jan Steemann 114acf1701 make datafile->_fid identical to datafile name for new datafiles 2013-03-20 12:41:36 +01:00
Jan Steemann 40199d64b7 fixed handling of empty and reserved attribute names in documents
specifying an empty attribute name in a document may have led to segmentation faults
when the document was unpacked later.
2013-03-20 11:48:33 +01:00
Jan Steemann a0bf485e11 fixed usage of invalid pointer 2013-03-19 11:31:42 +01:00
Jan Steemann d17a034d59 moved crc calculation into datafile 2013-03-18 20:17:31 +01:00
Jan Steemann 61cb229ca8 simplified writing of markers into datafiles 2013-03-18 20:04:31 +01:00
Jan Steemann e8a6c9ee6e cleaned up doc operation context 2013-03-18 17:34:17 +01:00
Jan Steemann 6f2bf0b139 removed unused property 2013-03-18 16:41:48 +01:00
Jan Steemann 99522ccb84 switch order of insertion into indexes & datafile for updates
updates are now done in the indexes first, then written to the datafile
2013-03-18 13:03:05 +01:00
Jan Steemann 0ef011d408 changed function signature 2013-03-18 09:17:49 +01:00
Jan Steemann 741dec2f7a changed function signature 2013-03-18 09:17:32 +01:00
Jan Steemann d1cde4457a wrapped some assertions into TRI_ASSERT_DEBUG 2013-03-15 19:00:59 +01:00
Jan Steemann b5895daabe fixed some printf format specifiers 2013-03-15 18:42:30 +01:00
Jan Steemann b6f680cd46 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
Conflicts:
	arangod/VocBase/document-collection.c
2013-03-15 18:16:36 +01:00
Jan Steemann ab83c3ea29 some cleanup 2013-03-15 18:07:22 +01:00
Jan Steemann 312b5fda64 some refactoring of document CRUD operations 2013-03-15 17:58:56 +01:00
Frank Celler 71fbdf87cd Mac fixes 2013-03-15 15:46:17 +01:00
Frank Celler 7908f2b26d cleanup of indexes, fix for compaction (hash, cap, geo, skiplist, pq, bit-array)
Conflicts:
	arangod/Ahuacatl/ahuacatl-tokens.c
	arangod/BitIndexes/bitarray.c
	arangod/BitIndexes/bitarray.h
	arangod/BitIndexes/bitarrayIndex.c
	arangod/BitIndexes/bitarrayIndex.h
	arangod/BitIndexes/masterblocktable.h
	arangod/GeoIndex/geo-index.c
	arangod/HashIndex/hash-index.c
	arangod/PriorityQueue/pqueueindex.c
	arangod/PriorityQueue/pqueueindex.h
	arangod/PriorityQueue/priorityqueue.c
	arangod/PriorityQueue/priorityqueue.h
	arangod/SkipLists/compare.h
	arangod/SkipLists/skiplist.c
	arangod/SkipLists/skiplist.h
	arangod/SkipLists/skiplistIndex.c
	arangod/SkipLists/skiplistIndex.h
	arangod/V8Server/v8-query.cpp
	arangod/VocBase/compactor.c
	arangod/VocBase/document-collection.c
	arangod/VocBase/index.c
	arangod/VocBase/index.h
	arangod/VocBase/synchroniser.c
	arangod/VocBase/voc-shaper.c
	arangod/VocBase/vocbase.c
	lib/BasicsC/hashes.h
	lib/BasicsC/memory.c
	lib/ShapedJson/json-shaper.h
	lib/ShapedJson/shaped-json.h
	utils/cleanupCFiles
2013-03-15 15:45:39 +01:00
Frank Celler f9ba951999 fixed comments 2013-03-15 13:42:52 +01:00
Frank Celler b0fc77d83d Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-03-15 11:37:59 +01:00
Frank Celler c773a0e825 replaced union by CONST_CAST 2013-03-15 11:37:49 +01:00
Oreste Panaia c8ea7ddc8b prepartion for skiplist transactions 2013-03-15 18:26:15 +08:00
Oreste Panaia 36733eb19f preparation for skiplists supporting transactions 2013-03-15 18:12:20 +08:00
Frank Celler 714eaa9f5f removed unused variable 2013-03-14 17:08:18 +01:00
Jan Steemann c8c0db8657 downgrade error message 2013-03-14 16:41:51 +01:00
Jan Steemann 61af5f27da added startup option `--database.force-sync-properties` 2013-03-14 13:48:58 +01:00
Jan Steemann ab14179ee7 made fsync configurable when writing json files 2013-03-14 12:33:25 +01:00
Jan Steemann 276627fd4c only free pointers if set 2013-03-14 11:51:51 +01:00
Frank Celler 891cac01b2 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
Conflicts:
	arangod/VocBase/collection.c
2013-03-13 17:05:59 +01:00
Frank Celler 1aa5109fa3 updated disclaimer 2013-03-13 17:03:18 +01:00
Jan Steemann 836963ae00 less compaction 2013-03-12 18:17:27 +01:00
Jan Steemann 3527a77f18 remove temporary files when opening a collection 2013-03-12 14:52:25 +01:00
Jan Steemann 91c38f8425 delete temporary files on startup 2013-03-12 14:45:42 +01:00
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
Frank Celler 9917ece449 added missing padding for 32bit 2013-01-02 16:17:38 +01:00
Jan Steemann 459f935d00 intptr_t to uintptr_t conversion 2013-01-02 15:00:59 +01:00
Frank Celler 1357ab6c54 Merge branch '1.1' of github.com:triAGENS/ArangoDB into 1.1 2013-01-02 14:53:13 +01:00
Frank Celler dadcef3de3 renamed execute/load to executelocal and executeglobal 2013-01-02 14:52:55 +01:00
Jan Steemann 74f9ced94e issue #335 2013-01-02 14:37:46 +01:00
Jan Steemann ea48388726 issue #335 2013-01-02 14:12:44 +01:00
Jan Steemann 0f887a39fa issue #332 2012-12-22 02:45:29 +01:00
Frank Celler d5f24ce13c Merge remote-tracking branch 'origin/windows' into HEAD
Conflicts:
	CHANGELOG
	Documentation/InstallationManual/Installing.md
	Documentation/Makefile.files
	Documentation/Scripts/generateTOC.py
	Documentation/header.html
	Installation/OBS/clean-repo.sh
	Installation/OBS/create-repo.sh
	Installation/OBS/create-ymp.sh
	Installation/OBS/index.html
	Installation/OBS/load-repo.sh
	Makefile.in
	VERSION
	aclocal.m4
	arangod/Ahuacatl/ahuacatl-functions.c
	arangod/Documentation/user-manual.dox
	arangod/V8Server/v8-actions.cpp
	arangod/V8Server/v8-vocbase.cpp
	arangod/VocBase/collection.c
	arangod/VocBase/datafile.c
	arangosh/V8Client/arangosh.cpp
	config/compile
	config/config.guess
	config/config.sub
	config/depcomp
	config/install-sh
	config/missing
	configure
	configure.ac
	js/server/arango-upgrade.js
	js/server/modules/org/arangodb/actions.js
	lib/BasicsC/logging.c
	lib/Utilities/ScriptLoader.cpp
2012-12-20 11:11:47 +01:00
Frank Celler b09260a06f removed debug output 2012-12-20 10:43:47 +01:00
Oreste Panaia 83ded3fc1f windows fixes 2012-12-20 17:17:30 +08:00
Jan Steemann 33ea87fccb cppcheck 2012-12-19 09:20:29 +01:00
Jan Steemann 669fe4275a cppcheck 2012-12-18 16:44:06 +01:00
Jan Steemann 6c0b840db0 clang fixes 2012-12-18 15:28:28 +01:00
Jan Steemann 6e781f9e1c cppcheck 2012-12-18 15:24:20 +01:00
Jan Steemann 96637435ab fulltext: more query operators, more tests, more controlled memory usage and statistics 2012-12-18 14:56:06 +01:00
Jan Steemann 0374ed417e fixed & reactivated compaction 2012-12-15 02:17:37 +01:00
Jan Steemann b8ca0b2d4d fulltext index massive rewrite 2012-12-15 01:01:25 +01:00
Jan Steemann b5d0457f3a fixed some issues reported by cppcheck 2012-12-12 18:42:11 +01:00
Jan Steemann 459b1ba886 fixed wrong return value in index creation functions 2012-12-11 18:58:05 +01:00
Jan Steemann 691ec4d536 more verbosity on failed fulltext insertion 2012-12-10 15:50:49 +01:00
Jan Steemann fb4afd0353 fulltext index 2012-12-10 12:16:48 +01:00
Jan Steemann 7c5d36bf0f adjusted default sizes 2012-12-07 18:04:29 +01:00
Jan Steemann cbaa57a1bd cleanup of fulltext indexes, resizing etc. 2012-12-07 18:00:01 +01:00
Jan Steemann 7261465139 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2012-12-07 13:51:31 +01:00
Jan Steemann c49ce0a52f fulltext resizing, still incomplete 2012-12-07 13:51:19 +01:00
Jan Steemann 63b4c94b0f fulltext resizing, halfway 2012-12-07 13:50:29 +01:00
a-brandt c4cc85ab9f memory bugfix 2012-12-07 13:47:02 +01:00
a-brandt 1794ea49fa added new function for getting words 2012-12-07 13:09:16 +01:00
Jan Steemann f89475df47 some cleanup 2012-12-07 09:53:00 +01:00
Jan Steemann 0b001b7a87 fixed memory leaks, added newest code by Richard 2012-12-06 16:43:33 +01:00
Jan Steemann 38809d4612 added callbacks for index cleanup 2012-12-06 15:46:11 +01:00
Oreste Panaia 857b66c490 windows version 2012-12-06 20:44:01 +08:00
Jan Steemann 242a16d6f5 proper naming of ICU functions 2012-12-06 12:27:22 +01:00
Jan Steemann 69986a5de0 fixed a segfault when searching for empty words in fulltext 2012-12-06 09:28:02 +01:00
Jan Steemann 21fa3ed616 small stuff, oom handling etc. 2012-12-04 21:21:26 +01:00
Jan Steemann 1811ce9186 fixed some issues found by cppcheck 2012-12-04 18:21:29 +01:00
Jan Steemann 5742ab6fba fixed unicode lowercasing 2012-12-04 11:12:38 +01:00
Jan Steemann 1e1f7da7f9 renamed files 2012-12-04 09:07:02 +01:00
Jan Steemann fcc880e021 use TRI_Allocate 2012-12-03 17:54:55 +01:00
Jan Steemann d8506d7a13 implemented updating of documents 2012-12-03 17:32:04 +01:00
Jan Steemann 1130df4330 utf8 lower-casing and normalisation for fulltext strings 2012-12-03 17:14:54 +01:00
Jan Steemann cdbb96788f issue #313 2012-12-03 15:30:01 +01:00
Jan Steemann 9b44e4aa45 added very limited & alpha fulltext query capability
db.collection.FULLTEXT() allows to issue queries using a fulltext index.
Needs to be passed a comma-separated query string with the search words.
Search words can be prefixed with either:
* prefix: does a prefix search
* complete: does a complete-match search
* substring: does a substring search

This is still very very alpha. It crashes and produces wrong results in some cases.
2012-12-02 03:24:20 +01:00
Jan Steemann d2aef2dcdc add words to fulltext index
this parses the fulltext-indexed attributes of documents when there's a fulltext index, and adds the individual words to the index.
As the fulltext index is case-sensitive, all words are added to the index in lower case.
The text tokenisation implementation is still very naive and currently works properly only for character ranges [a-z] and [A-Z].
Unicode words are also supported, but they are not normalised nor lower-cased yet. Additionally, unicode punctuation characters are not excluded and will also be added to the index.
Updating documents that are fulltext-indexed currently does not work.
2012-12-02 00:55:59 +01:00
Jan Steemann f517aa0059 ensureFulltextIndex 2012-11-30 17:53:02 +01:00
Jan Steemann 19fb9d0aea added stub functions for fulltext indexes 2012-11-30 14:50:02 +01:00
Jan Steemann f634b1aff0 code unification 2012-11-29 22:34:49 +01:00
Jan Steemann d8a06fe136 removed unused flags from doc_operation_context 2012-11-29 13:44:36 +01:00
Jan Steemann 42df64d7c0 added tests for key pattern 2012-11-29 12:37:30 +01:00
Jan Steemann 77f3115ac7 updated documentation for document ids and keys 2012-11-29 10:20:10 +01:00
Jan Steemann 8d2db81042 document key handling 2012-11-29 09:49:11 +01:00
Jan Steemann cbad6b526a make collections accesible via name instead of id.
this allows using the collection name instead of ids in _from, _to, _id etc.
2012-11-28 13:16:15 +01:00
Jan Steemann f84207e368 removed redundant declaration of edges index. edges index is now a regular index 2012-11-27 14:14:31 +01:00
Frank Celler 6e94eeb36f Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2012-11-27 12:35:12 +01:00
Frank Celler 249492a89c Merge remote-tracking branch 'origin/1.1' into devel
Conflicts:
	CHANGELOG
	Documentation/Manual/GlossaryCollectionName.md
	Documentation/Manual/NewFeatures11.md
	Documentation/UserManual/FirstStepsArangoDB.md
	VERSION
	arangod/Documentation/api-blueprints.dox
	arangod/HashIndex/hasharray.c
	arangod/RestHandler/RestVocbaseBaseHandler.cpp
	arangod/RestServer/ArangoServer.cpp
	arangod/V8Server/v8-actions.cpp
	arangod/V8Server/v8-vocbase.cpp
	arangod/VocBase/compactor.c
	arangod/VocBase/document-collection.c
	configure.ac
	html/admin/js/master.js
	js/server/ahuacatl.js
	js/server/arango-upgrade.js
	lib/BasicsC/voc-errors.h
	lib/V8/V8LineEditor.cpp
	lib/V8/v8-utils.cpp
2012-11-27 12:34:58 +01:00
a-brandt 9458fa1ce5 fix 2012-11-26 17:28:58 +01:00
a-brandt 1c7b0a6387 fix 2012-11-26 17:28:51 +01:00
Jan Steemann 4ecb3b09f5 fix compiler warning 2012-11-26 10:07:57 +01:00
Jan Steemann c751611ee8 fixed logic error 2012-11-24 17:12:52 +01:00
Jan Steemann eac11fb793 issue #293 2012-11-24 03:16:23 +01:00
Jan Steemann 8ac81dbc85 shut up the compiler 2012-11-23 20:37:03 +01:00
Jan Steemann f812408a7e documentation for collection names / keys 2012-11-23 19:41:14 +01:00
Jan Steemann bc94851026 fixed compile warnings 2012-11-23 13:18:00 +01:00
Jan Steemann e7f8543d81 moved documentation changes from 1.1 to devel 2012-11-23 10:18:47 +01:00
Jan Steemann 10bfbb90e5 fixed type errors 2012-11-23 09:04:37 +01:00
Jan Steemann 687eac97b5 fix type errors 2012-11-23 09:00:11 +01:00
Jan Steemann b2faa016a6 fixed gcc compile warnings 2012-11-22 21:34:41 +01:00
Jan Steemann aaf34f44f4 fixed lots of compile warnings 2012-11-22 21:20:22 +01:00
Frank Celler cccb3511c5 fixed documentation again 2012-11-21 17:42:13 +01:00
Jan Steemann 69c9a9716c prevent compile warning 2012-11-19 13:59:06 +01:00
Jan Steemann e69145e391 fix memleak 2012-11-19 13:28:22 +01:00
Jan Steemann 662112bad3 changed call to figures to lock inside primary-collection.c instead of v8-vocbase.cpp 2012-11-19 11:47:52 +01:00
Jan Steemann 541066cdc1 free global instances of collections at shutdown 2012-11-16 15:43:48 +01:00
Jan Steemann 38025fbc31 documents and edges are now created using transaction contexts 2012-11-16 15:36:44 +01:00
Jan Steemann de9b2c71c1 fixed some transaction stuff 2012-11-15 18:39:48 +01:00
Jan Steemann fe7e061a27 transaction nesting 2012-11-15 18:14:20 +01:00
Jan Steemann fddcea9d4e Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
Conflicts:
	arangod/Utils/Collection.h
2012-11-15 13:59:54 +01:00
Jan Steemann 1ff2430e39 transaction refactoring 2012-11-15 13:53:11 +01:00
a-brandt 407ac48821 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2012-11-15 11:25:22 +01:00
a-brandt 71d3d54de1 collection info struct changed 2012-11-15 11:24:35 +01:00
Jan Steemann 00c9955ed2 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2012-11-14 17:14:11 +01:00
Jan Steemann 9e40045025 changed document CRUD API signatures 2012-11-14 17:11:16 +01:00
a-brandt 3e302a5aea changed function TRI_IsAllowedCollectionName 2012-11-14 14:09:00 +01:00
Jan Steemann 897a086649 renamed parameters 2012-11-14 13:28:04 +01:00
Jan Steemann 30ba8771a7 pluggable key generators 2012-11-14 12:44:56 +01:00
Jan Steemann cdd163cc8a added TRANSACTION() JS function 2012-11-13 18:45:27 +01:00
Jan Steemann b8655965f4 some transaction changes 2012-11-13 17:36:24 +01:00
Jan Steemann d7aa6d7d0a more cleanup 2012-11-09 18:42:07 +01:00
Jan Steemann be39dbd419 some cleanup 2012-11-09 17:50:07 +01:00
Jan Steemann 728dfa3d9e fixed a few out of memory situations 2012-11-09 17:30:28 +01:00
Jan Steemann 419456c1a8 some refactoring 2012-11-09 15:06:28 +01:00
Jan Steemann b9019329c8 fail gracefully on invalid marker types 2012-11-09 11:05:06 +01:00
Jan Steemann 65db6eee8b some simplification 2012-11-09 11:03:42 +01:00
Jan Steemann 7dfab2d6dc introduced validFrom, still does nothing 2012-11-09 10:42:06 +01:00
Jan Steemann 149c6c1fc1 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2012-11-08 17:47:53 +01:00
Jan Steemann 64c6bc5cb0 renamed marker member _deletion to _validTo, some cleanup 2012-11-08 17:47:18 +01:00