0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

474 Commits

Author SHA1 Message Date
Dwight
c78ec26e0f some work towards bg indexing 2010-01-21 16:35:35 -05:00
Aaron
f623739aca SERVER-525 check for index conflict before inserting into capped collection 2010-01-20 18:09:27 -08:00
Dwight
2772af49a1 SERVER-182 allow queries with array indexes 2010-01-20 13:57:20 -05:00
Dwight
036e6f7ba8 some work towards background indexing
option
2010-01-18 14:34:33 -05:00
Dwight
0165ec1fda fix extraneous info put in profiler objects, and make a tiny bit faster (updates) too 2010-01-15 17:33:44 -05:00
Dwight
98db9eed8a comment MINOR 2010-01-15 17:12:16 -05:00
Dwight
2628d0213a refactor and clean up some index building code
no longer allow two indexes with same key pattern (with diff names)
2010-01-15 16:05:14 -05:00
Dwight
94ed98667f make buildindex interruptable 2010-01-15 13:19:35 -05:00
Eliot Horowitz
c02e200b10 move some Index* stuff to db/index.* 2010-01-15 11:03:05 -05:00
Dwight
5e557f4071 fix warning on vc++ 2010-01-06 13:41:20 -05:00
Aaron
df1c01d6fe MINOR always allocate new extents when 'nExtents' debug parameter is specified, to avoid occasional capped2.js failures 2010-01-05 09:54:01 -08:00
Eliot Horowitz
fcf2d5721c some cleaning/optmizing of Database* storage, also just a little encaspulation 2010-01-02 01:25:53 -05:00
Eliot Horowitz
d531f77f67 nsToClient -> nsToDatabase 2009-12-31 16:31:07 -05:00
Eliot Horowitz
5f36804299 stop using stringstream for logging 2009-12-29 23:30:29 -05:00
Eliot Horowitz
d5a5401f9a use code in getLastError SERVER-112 2009-12-28 17:12:49 -05:00
Eliot Horowitz
0ab8149a8e uassert/massert take error code SERVER-112 2009-12-28 16:43:43 -05:00
Aaron
e6b27edec7 MINOR comments 2009-12-21 09:26:16 -08:00
Dwight
2437f989c9 fix a problem with extent re-use SERVER-490 2009-12-18 17:43:40 -05:00
Dwight
4390797b88 make query optimizer map thread-safe 2009-12-09 18:13:36 -05:00
Dwight
5ee785e34a cleaning/comments for namespacedetailstranient readability 2009-12-09 16:36:31 -05:00
Eliot Horowitz
4e9630f5d5 fail fast on capped delete SERVER-395 2009-11-23 23:34:17 -05:00
Eliot Horowitz
253a1cd0cd progress meters for large index builds 2009-11-19 11:19:48 -05:00
Dwight
2e21112c7d fix error message reporting on build index 2009-11-18 14:54:37 -05:00
Eliot Horowitz
7db9f7ee87 some index building code cleaning looking at SERVER-423, but can't see anything yet 2009-11-13 17:26:00 -05:00
Eliot Horowitz
3818050a7d use any type for bool value 2009-11-04 17:09:03 -05:00
Eliot Horowitz
e0c377e0ee update returns DiskLoc where object ends up 2009-10-30 15:50:21 -04:00
Eliot Horowitz
63e0ee59e4 fix invalid ensureIndex crashing server SERVER-388 2009-10-26 21:10:45 -04:00
dwight
fe0226cd79 MINOR global var cleanup 2009-10-24 14:34:54 -04:00
Eliot Horowitz
bf4e08f0f3 assert when trying to remove from a capped collection 2009-10-22 13:40:44 -04:00
Dwight
bfa27ae2b3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-21 16:00:55 -04:00
Dwight
844d96c19f allow more indexes
do not revert to an earlier db version or you will have problems
2009-10-21 16:00:40 -04:00
Eliot Horowitz
672f2821af --quotaFiles SERVER-374 2009-10-20 13:29:05 -04:00
Dwight
a606c7a6b8 cleanup/prep for # of indexes work 2009-10-19 16:53:58 -04:00
Dwight
314385b97e some tests were failing when _DEBUG was defined...MINOR 2009-10-19 15:30:16 -04:00
Dwight
01f1f6915d move CurOp into Client and make inprog handle multiple in progress 2009-10-16 15:36:34 -04:00
Eliot Horowitz
f634e70093 move quota/cpu to cmdLine 2009-10-16 11:36:38 -04:00
Eliot Horowitz
72dc2b9c22 fix sayDbContext to work w/o Client 2009-10-14 21:53:17 -04:00
Dwight
16f8b77c5e move the var 'database' inside Client object 2009-10-14 14:34:38 -04:00
Dwight
2d934d1006 move curNs to Client object 2009-10-13 16:01:02 -04:00
dwight
97391936f7 Merge branch 'master' of git@github.com:mongodb/mongo
Conflicts:

	db/pdfile.cpp
2009-10-10 10:15:15 -04:00
dwight
1fd038c699 comment 2009-10-10 10:14:28 -04:00
Eliot Horowitz
ee72859d26 --smallfiles for some regression tests 2009-10-08 16:29:04 -04:00
Eliot Horowitz
3e3dda9c97 fix compount key with array indexing SERVER-279 2009-10-08 13:07:25 -04:00
Eliot Horowitz
a0d3663765 whitespace 2009-10-08 12:59:03 -04:00
Eliot Horowitz
677fbad312 client cursor cleaning and fix masked error 2009-10-08 12:04:27 -04:00
Dwight
d2db017c7a some code cleanup 2009-10-07 15:34:14 -04:00
Dwight
cb8a425f39 system.profile collection can now be dropped 2009-10-05 16:40:24 -04:00
Dwight
2967c63e92 exit faster on ctrl-c 2009-10-05 12:59:51 -04:00
Dwight
151d960765 correctly rollback a failed index create 2009-10-05 10:19:51 -04:00
Dwight
04104f13a1 add mapreduce() to the c++ client api.
not yet tested.
2009-10-02 16:55:47 -04:00
Eliot Horowitz
ae3d49d718 allow you to store js functions in the server SERVER-157 2009-09-29 16:54:31 -04:00
dwight
29ec5bf837 tuning index performance
log less too
2009-09-27 14:46:51 -04:00
Eliot Horowitz
5f75cfe408 some debugging 2009-09-26 23:47:01 -04:00
Eliot Horowitz
ad29f40716 warning and debugging 2009-09-25 11:56:17 -04:00
Dwight
0c5d8a7b3f build indexes bottom up
Merge branch 'master' of git@github.com:mongodb/mongo

Conflicts:

	db/extsort.cpp
2009-09-24 17:47:13 -04:00
Dwight
7a6f8d2398 Merge branch 'master' of git@github.com:mongodb/mongo
Conflicts:

	db/pdfile.cpp
2009-09-24 17:13:52 -04:00
Dwight
29f0d36640 more buildindex 2009-09-24 17:10:45 -04:00
Eliot Horowitz
56698dc313 return Iterator * 2009-09-24 17:04:44 -04:00
Dwight
0678cedd5b intermediate buildindex commit 2009-09-24 14:21:40 -04:00
Dwight
6cf3d75d08 btreebuilder work / temp commit 2009-09-24 12:11:55 -04:00
Eliot Horowitz
663b1bfd8e spam 2009-09-21 20:30:40 -04:00
Dwight
6bbaf0fdc3 better unit tests for unique indexes and dropDup : true on indexing 2009-09-21 16:31:00 -04:00
Dwight
926eecc0ce prep for buildIndex() work 2009-09-18 13:28:40 -04:00
Dwight
2706a28123 begin cmdline.h 2009-08-25 10:24:44 -04:00
Dwight
6c4a830e21 alloc() bug fix 2009-08-24 16:43:33 -04:00
Eliot Horowitz
93382dd24e fix case where there is a large object early in a collection that is bigger than an early sized extent 2009-08-21 17:17:20 -04:00
Eliot Horowitz
4be8bfc805 log(1) new extents 2009-08-21 17:05:29 -04:00
Dwight
062e60a661 cleaning MINOR 2009-08-13 13:26:47 -04:00
Dwight
f0c2c8003f don't allow dropping an index $ collection
http://jira.mongodb.org/browse/SERVER-217
2009-08-13 13:26:03 -04:00
Eliot Horowitz
01ff742b4e changed dbpath to std::string 2009-08-11 14:29:03 -04:00
Aaron Staple
63b8f32e13 Merge branch 'master' of git@github.com:mongodb/mongo 2009-08-11 01:43:03 -04:00
Dwight
17042c403e use $snapshot in the clone / repl code where appropriate
also adds snapshot to the C++ client driver
2009-08-10 16:57:59 -04:00
Eliot Horowitz
de9543ff4d cleaner drop debugging 2009-08-06 11:54:30 -04:00
Dwight
4875e282d1 better error message on drop() 2009-08-06 11:37:33 -04:00
Aaron Staple
f76fbbc402 BUG SERVER-184 mode for dropping duplicate records when creating unique index; correct index cache update behavior when createIndex called by ensureIndex fails 2009-08-05 16:02:20 -04:00
Aaron Staple
68dc075c00 MINOR comments, cleanup 2009-08-05 14:03:29 -04:00
Aaron Staple
d91bb3a565 more flexible $all matching 2009-08-03 16:26:18 -04:00
Aaron Staple
7162ec9343 MINOR remove cruft 2009-08-03 14:47:03 -04:00
Aaron Staple
137f185298 SERVER-62 generate keys for more complex array arrangements, also ensure generation of null key and semi-null keys 2009-08-03 14:32:23 -04:00
Aaron Staple
de1ce6719e MINOR relocate variable to make other binaries happy 2009-08-01 15:11:10 -04:00
Aaron Staple
24a6ae09d7 disable data file preallocation for pairing/repl tests 2009-08-01 14:54:20 -04:00
Aaron Staple
5dcdc3a59c fast collection renaming within a database 2009-07-29 15:53:14 -04:00
Eliot Horowitz
45f29d0123 beginnings of mms client 2009-07-17 15:49:24 -04:00
Eliot Horowitz
bd018f61d5 long instead of int for file size 2009-07-09 16:56:34 -04:00
Dwight
d73d4587ed correct comments MINOR 2009-07-07 16:43:49 -04:00
Dwight
85e8f71c1c fixed bug SERVER-118 multikey duplicate results from queries 2009-07-07 13:17:53 -04:00
Dwight
aaa1769381 fix bug SERVER-96 update that changes unique index field disregards unique constraint 2009-06-19 16:03:44 -04:00
Dwight
5b8ca64dbb fix bug where the feature that ensures _id is preserved on an update
had a case that didn't work - test cases added too
2009-06-19 13:26:58 -04:00
Dwight
f136b4b850 towards update unique key fix 2009-06-18 13:30:49 -04:00
Eliot Horowitz
00df88c21d moved BSONObjIterator::more to BSONObjectIteratore::moreWEOO()
added _more temporarily
SERVER-101
2009-06-09 11:43:04 -04:00
Dwight
573c3e419b cleanup of update() before fixing dup keys issue there 2009-06-05 17:12:49 -04:00
Dwight
a9f4598e25 just comments todo on update dup keys MINOR 2009-06-04 14:55:41 -04:00
Aaron
c03a7186cf file allocator compile windows MINOR 2009-05-28 12:59:27 -04:00
Aaron
83be71666f wait for file allocator to finish before removing files 2009-05-27 17:23:47 -04:00
Aaron
087e7c857e add id index to correct collection MINOR 2009-05-26 15:58:22 -04:00
Aaron
d22db6f05d BUG SERVER-71 don't allow multiple _id indexes 2009-05-26 14:33:19 -04:00
Aaron
7552a7ccb5 fix op logging for collection creation and for convertToCapped 2009-05-21 11:07:11 -04:00
Aaron
b773d2c965 autoIndexId defaults to false when creating a capped collection 2009-05-18 11:18:16 -04:00
Aaron
f0363bef0d refactor dropCollection 2009-05-11 10:45:10 -04:00
Aaron
e9b4457aa7 better id index logging MINOR 2009-04-21 17:52:11 -04:00
Aaron
54f806da95 don't update id index when id field is to be added 2009-04-21 17:01:33 -04:00
Aaron
302bc3a3b0 Merge branch 'master' of git@github.com:mongodb/mongo 2009-04-21 15:57:33 -04:00
Aaron
e0fd1d4c26 fix issue rolling back indexes on uniqueness violation 2009-04-21 15:56:45 -04:00
Aaron
eb5fa5c7d8 add index id in userCreateNS, unless this is not requested in create spec 2009-04-21 15:42:22 -04:00
Aaron
ecc651ea43 create id index correctly when cloning 2009-04-20 20:17:39 -04:00
Aaron
b1cc3f6223 add _id index automatically, don't allow it to be deleted 2009-04-20 18:40:38 -04:00
Dwight
c34ef0f68d create index, when unique, will now completely fail if there is a duplicate key error during index creation. 2009-04-20 12:38:36 -04:00
Dwight
9b2f190ab9 unique indexes
use { unique : true } in the index info
2009-04-20 10:29:26 -04:00
Aaron
405b490672 don't preallocate on very first allocation for file, to avoid splitting new capped collections unnecessarily 2009-04-15 16:13:59 -04:00
Aaron
f86d33372d update size in map and allocate asap interfaces 2009-04-15 16:11:54 -04:00
Aaron
e8c1ce4dc1 Revert "Revert "do preallocation after initial allocation too, make file allocator interface more flexible""
This reverts commit 668cf57c52.
2009-04-15 16:10:34 -04:00
Aaron
89884a1811 Revert "Revert "uassert on invalid size spec to create collection""
This reverts commit 40bbf305b5.
2009-04-15 16:10:28 -04:00
Aaron
c99883578c Revert "Revert "allocate files in background""
This reverts commit e577a2c64e.
2009-04-15 16:10:21 -04:00
Aaron
d8fbc8817d Revert "Revert "preallocate on implicit creation of first data file""
This reverts commit 7cb2b1e84d.
2009-04-15 16:10:13 -04:00
Aaron
7cb2b1e84d Revert "preallocate on implicit creation of first data file"
This reverts commit a233875fbb.
2009-04-15 15:58:43 -04:00
Aaron
e577a2c64e Revert "allocate files in background"
This reverts commit 0033bd91df.
2009-04-15 15:40:16 -04:00
Aaron
40bbf305b5 Revert "uassert on invalid size spec to create collection"
This reverts commit 643ceabc75.
2009-04-15 15:40:05 -04:00
Aaron
668cf57c52 Revert "do preallocation after initial allocation too, make file allocator interface more flexible"
This reverts commit 5d9cb32605.
2009-04-15 15:39:57 -04:00
Aaron
ebcd7f9157 Merge branch 'master' of git@github.com:mongodb/mongo 2009-04-15 15:16:38 -04:00
Aaron
a233875fbb preallocate on implicit creation of first data file 2009-04-15 15:12:37 -04:00
Aaron
5d9cb32605 do preallocation after initial allocation too, make file allocator interface more flexible 2009-04-15 14:57:37 -04:00
Aaron
643ceabc75 uassert on invalid size spec to create collection 2009-04-15 13:49:06 -04:00
Aaron
0033bd91df allocate files in background 2009-04-15 11:58:38 -04:00
Aaron
26bddf1ef8 log separate op for each deleted object 2009-04-09 13:30:28 -04:00
Aaron
56f8696909 don't allow _id to be an array 2009-04-07 11:02:29 -04:00
Aaron
0b73b8d325 array elt may not contain referenced subobject 2009-04-06 13:41:47 -04:00
Dwight
c88389e558 checkpoint: beginnings of cleaning up the recstore interface 2009-03-20 15:39:22 -04:00
Aaron
3c2196420e Merge branch 'master' of git@github.com:mongodb/mongo 2009-03-19 16:23:19 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Dwight
e35ffd32dd improved dropIndex for new recstore 2009-03-19 15:38:49 -04:00
Aaron
cc83107966 Now forward startLoc, with test 2009-03-18 17:50:45 -04:00
Aaron
6d10afbd49 Find requested oplog entry starting from tail of log 2009-03-18 17:24:10 -04:00
Dwight
7165d7369e implemented dropIndexes for alt rec store 2009-03-17 17:02:21 -04:00
Aaron
93ac9027cd finishCloneCollection checkpoint 2009-03-11 17:37:25 -04:00
Aaron
3931f7efcb Revert "Use os file locking to lock dbpath"
This reverts commit 56e81849a0.
2009-03-10 10:14:37 -04:00
Aaron
56e81849a0 Use os file locking to lock dbpath 2009-03-09 20:02:02 -04:00
Aaron
bf123c2925 Remove log 2009-03-05 18:55:09 -05:00
Aaron
ae78648781 Better cloneCollection checkpoint 2009-03-04 15:57:35 -05:00
Aaron
2ba030abe0 Move index cache to NamespaceDetailsTransient 2009-03-03 17:30:26 -05:00
Aaron
253a49d2a1 Add new Matcher interface, use in count, add consts 2009-03-02 10:41:36 -05:00
Eliot Horowitz
b1a1e98294 make timestamp work on update, and a test 2009-02-28 18:55:04 -05:00
Aaron
9d792eb0c5 Rename CurrentTime to Timestamp, don't change type on insert 2009-02-27 18:14:45 -05:00
Aaron
63e5764fe2 Add BSONElementManipulator and CurrentTime type 2009-02-27 17:18:56 -05:00
Aaron
f1ad2c2875 Adjust dependencies 2009-02-26 11:08:23 -05:00
Aaron
bedaec4142 Clear query cache if an index is removed 2009-02-25 11:06:03 -05:00
Aaron
0d8dded1c3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 17:51:58 -05:00
Aaron
17b7897f19 Remember best index for query pattern 2009-02-24 17:48:06 -05:00
Dwight
06ec54c285 oops, recent checking broke everything badly 2009-02-24 17:44:56 -05:00
Dwight
70ad274d41 look for the best match when reusing old extents 2009-02-24 16:55:56 -05:00
Dwight
009c4af298 eliminate old warnings that no longer apply 2009-02-24 16:39:08 -05:00
Dwight
98c8676694 dropcollection now reuses space
dropindex doesn't yet -- coming soon
2009-02-24 13:52:34 -05:00
Aaron
13b0d2c1cf Index objects even if don't have a field from index spec 2009-02-23 17:26:36 -05:00
Dwight
da53450036 fix to properly check for dupkey with unused keys 2009-02-13 12:58:05 -05:00
Dwight
459d62347b replication / exception throwing bug fix
--only option added
2009-02-12 15:03:38 -05:00
Dwight
9f5fe79f2f little things: hack for windows filenames, better logging 2009-02-11 11:28:49 -05:00
Dwight
147948c7b3 doneAndDecouple() -> obj() 2009-02-09 13:04:32 -05:00
Dwight
4dc5d0b907 no more "msg end"
get rid of crazy <b> in profiling strings
2009-02-04 14:49:24 -05:00
Aaron
57dc491b4b Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-04 10:59:32 -05:00
Aaron
cf4e99b9ee Log generated id with inserted object, log id as update query in some cases 2009-02-03 22:34:51 -05:00
Aaron
48cfea2b1a Preserve old id on ipdate with no id spec 2009-02-03 19:13:27 -05:00
Dwight
fac2ee626f mamke getCollectionNames() in the shell prettier
overlogging
2009-02-03 14:42:53 -05:00
Eliot Horowitz
9bcacf16c0 pragma pack changes for solaris
slight change this will break other platforms, will test
2009-02-01 22:21:32 -05:00
dwight
f4bbbd253d better error msg 2009-02-01 15:38:02 -05:00
dwight
c42f515761 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:

	stdafx.h
2009-02-01 15:00:24 -05:00
dwight
5e5765f9b4 recstore 2009-02-01 14:53:54 -05:00
unknown
b8447bfcad inmemrecstore beginnings 2009-01-31 19:09:46 -05:00
unknown
9e9eb0cec7 abstracting out record storage for btree 2009-01-31 17:27:25 -05:00
Dwight
fcb6834a60 add _id when missing on an insert
OID generation by the server a little better
OID str form output straigth byte order now
2009-01-30 18:18:38 -05:00
Dwight
3366714892 better error msgs
--sysinfo
2009-01-29 16:06:22 -05:00
Aaron
639c73405c Don't log an update having no effect, log id as query when doing just one remove 2009-01-28 15:24:52 -05:00
Aaron
0c6deae423 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-01-27 16:17:07 -05:00
Aaron
cfb9ffa0ec Reset index cache when deleting index 2009-01-27 16:16:53 -05:00
Dwight
83c1dbb1c2 check the index range first before we go into the object on a query -- so we don't hit disk unnecessarily
fix index4.js test
check on index creation that index key pattern is ok
2009-01-27 15:35:28 -05:00
Dwight
c85b113c66 check that _id is unique 2009-01-26 17:23:45 -05:00
dwight
cc62027aee replication with security on 2009-01-23 18:24:15 -05:00
Aaron
2722c2f472 Convert to const 2009-01-23 10:15:36 -05:00
Eliot Horowitz
3e7985c5d6 changed verbose to logLevel and added log(int) 2009-01-20 14:30:59 -05:00
dwight
e1021ee8ab authenticate command work
some dbhelpers additions
less verbose logging
2009-01-18 17:48:44 -05:00
unknown
f412f99bee compile on windows 2009-01-18 11:53:33 -05:00
Aaron
261a467aa5 Replaced our #defined cout with mongo::out() 2009-01-15 11:26:38 -05:00
Aaron
90d45238aa Indent all lines within namespaces one level 2009-01-15 10:17:11 -05:00
Aaron
248a6dd8de Replace tab indentation with spaces 2009-01-14 17:17:24 -05:00
Aaron
ad1f6b3cbd Put our code in 'mongo' namespace 2009-01-14 17:09:51 -05:00
Aaron
64cc93ac22 Merge jsobj.h changes 2009-01-14 14:24:34 -05:00
Aaron
21a13b1336 NEW pdfile # : 4.4; Support compound directions with compound indexes 2009-01-14 13:56:52 -05:00
Eliot Horowitz
9ecc007b5b move sayDbContext to stdafx (it was defined there anyway) 2009-01-14 13:00:07 -05:00
Aaron
20dc205b17 Size calculation works for cap extent minSize on 64 bit machines, removed compiler warnings. 2009-01-14 10:11:51 -05:00
Aaron
d0299a39d1 Separate file size spec from name, create new style capped cursors, define file size func on any os 2009-01-13 10:28:42 -05:00
Aaron
3e5965e2c9 Fix disk free space calculation 2009-01-12 09:58:30 -05:00
Dwight
11c43967f9 Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p 2009-01-06 18:25:45 -05:00
Dwight
1cc123561a try not to die in segv printouts with deadlocks and such 2009-01-06 18:25:38 -05:00
Aaron
dacc872ba2 Enhance json parser 2009-01-06 13:02:09 -05:00
Dwight
42a807d3ee minor logging prettiness 2008-12-31 10:01:55 -05:00
Aaron
4e01f4fc84 Clear tmp dirs on startup 2008-12-29 14:22:36 -05:00
Aaron
59c6f23224 Add listDatabases command 2008-12-29 13:24:24 -05:00
Aaron
3211918f04 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2008-12-29 12:11:14 -05:00
Aaron
f6613cc644 Check db size before repairing 2008-12-29 11:56:13 -05:00
Dwight
a9bbd5681b nicer logging
--verbose
2008-12-29 11:47:20 -05:00
Aaron
b7cbd30112 Replace tab indentation with spaces 2008-12-28 20:28:49 -05:00
unknown
4148938303 simple quotas for disk usage 2008-12-27 12:07:20 -05:00