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
unknown
d3d8cb55d1
minor logging cleanup
2008-12-27 11:05:04 -05:00
dwight
12e8be2b62
ensurehaveidindex had a bug could have resulting in two _id indexes
2008-12-25 21:22:27 -05:00
Aaron
3148da81f2
Index simple objects within arrays
2008-12-24 13:57:30 -05:00
Aaron
11f58f1882
Use empty string for field names of key elements
2008-12-19 18:12:59 -05:00
Aaron
e416c1f119
Automatically repair databases when pdfile version changes
2008-12-18 13:32:47 -05:00
Aaron
b473e85b92
Make g++ warnings stricter, clear a few new warnings
2008-12-17 14:09:37 -05:00
Dwight
ac51aadd92
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
...
Conflicts:
db/pdfile.h
2008-12-16 18:01:00 -05:00
Aaron
75a45c346f
Add repairDatabase support
2008-12-16 10:20:24 -05:00
Aaron
b3d2c2ebd8
Some basic array index improvements
2008-12-11 17:35:11 -05:00
Aaron
3ec2ba4d9d
Added some index details tests
2008-12-11 15:20:28 -05:00
Dwight
9fadd09ac6
show assertions in the web console
2008-12-04 18:11:25 -05:00
Dwight
e0727dc658
clone/copy db now works on replicating databases
2008-12-03 18:27:32 -05:00
Dwight
eff1694cd7
repl tran log was smaller than it should be
2008-12-02 15:51:00 -05:00
Dwight
60b769a8cb
replication fixes -- "first: true" support (local.dbinfo.*); clean up class name
2008-12-02 14:24:45 -05:00
Dwight
2a46ef9acd
embedded object segfault fix
2008-11-04 15:05:01 -05:00
Dwight
a4968427e2
bug fix with $natural
...
timeout on connects w/dbgrid faster
2008-11-03 20:42:59 -05:00
Dwight
13480027d9
reorganize commands code for dbgrid
2008-10-22 16:56:39 -04:00
Dwight
0aef80f8cc
rename classes
2008-10-21 16:13:48 -04:00
unknown
2a9c303a5a
int datatype
2008-10-12 20:09:59 -05:00
Dwight
732e137119
BUG 905 fixed w/indexes case
2008-10-09 17:29:04 -04:00
dwight
8fbdd64997
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
2008-10-08 18:20:17 -04:00
dwight
4f23bf199f
minor, request.cpp started
2008-10-08 18:20:02 -04:00
Eliot Horowitz
98823b6ca4
don't use data files larger than 512mb on 32 bit
2008-10-07 08:18:19 -04:00
Dwight
ab00e9875b
validate objects on clone()
2008-10-02 17:25:57 -04:00
Dwight
379a756262
copydb
2008-09-15 15:30:53 -04:00
dwight
e783239b3f
copydb work
2008-09-14 22:49:30 -04:00
Dwight
f56113d736
arbitrate
2008-09-11 15:13:47 -04:00
Dwight
5727d1b853
repl tweaks
...
justCreated wasn't qutie right
smarter about handling new db's beign advertised
log cleaner
2008-09-05 10:40:00 -04:00
Dwight
5f9d52a2f5
more work on pairing
2008-09-04 18:24:03 -04:00
Dwight
8cac7e4dc4
advertise new dbs for replication; handle user asserts on repl
2008-09-03 16:43:00 -04:00
Dwight
10d993452b
added transient namespace info
2008-08-27 20:33:47 -04:00
Dwight
43529c43cf
we only clone one database per pass, even if a lot need done. This helps us
...
avoid overflowing the master's transaction log by doing too much work before going
back to read more transactions. (Imagine a scenario of slave startup where we try to
clone 100 databases in one pass.)
2008-08-26 13:34:34 -04:00
Dwight
ca08e48791
repl tweaks
2008-08-25 16:46:39 -04:00
Dwight
53c3f540b6
auto add _id index on slave so replication is fast
2008-08-19 17:13:20 -04:00
Dwight
f4f3aacad7
checkpoint my work
2008-08-12 10:30:27 -04:00
dwight
112b19a5d9
log cleanup
2008-08-02 17:02:41 -04:00
Dwight
6e1f782d16
important cursor bug fixes (getmore)
...
clean up logs a little
2008-07-30 14:07:02 -04:00
Dwight
a0d1c47ff7
replication some work done
2008-07-28 17:52:44 -04:00
Dwight
3363fe311c
collection options are retained when db is cloned;
...
those options now listed in system.namespaces;
more repl work
2008-07-28 13:51:39 -04:00
Dwight
e011494cbc
cloneDatabase()
2008-07-27 18:36:47 -04:00
Dwight
20c7cf953a
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
2008-07-24 16:07:29 -04:00
Dwight
24fdaa1ed9
fix nasty drop / dropIndex bugs
2008-07-24 16:07:18 -04:00
Eliot Horowitz
517956ab60
hack namespace _hudsonSmall which uses small files so we can test file boundaries
2008-07-24 14:09:18 -04:00
Dwight
fa1bbbc78a
defensive / better logging / minor
2008-07-23 18:09:53 -04:00
Eliot Horowitz
50e8a1a3f5
added AGPL License Header to every file
...
take 2
2008-07-20 17:37:33 -04:00
Eliot Horowitz
383a862ad3
Revert "added AGPL License Header to every file"
...
Oops - added multiple times.
This reverts commit 608769fd03
.
2008-07-20 17:34:22 -04:00
Eliot Horowitz
608769fd03
added AGPL License Header to every file
2008-07-20 17:33:02 -04:00
Dwight
b9410e381f
validation / defensive stuff.
2008-07-16 19:18:04 -04:00
Dwight
7d5c131193
roll back bad bug commited couple hours ago
2008-07-16 17:21:47 -04:00
Dwight
4bfd28fa48
npe fix and defensive code
2008-07-16 14:36:10 -04:00
Dwight
51bb240a58
--nojni option.
2008-07-11 12:27:23 -04:00
Dwight
017d3126bc
logging wasnt' threadsafe
2008-07-09 16:29:58 -04:00
Dwight
ee68a8e252
--nocursors
2008-07-09 12:32:11 -04:00
Dwight
1bf45a0843
fix deleteindexes and drop issue
...
minor hashtab fix
ensureindex works now if collection DNE
2008-07-07 18:57:04 -04:00
Dwight
89b2164a18
more defensive code and smarter validate function
2008-06-30 21:08:31 -04:00
Dwight
d85e75b674
switching locations
2008-06-28 13:46:59 -04:00
Dwight
b1a480423b
first cut at "fast count"
2008-06-27 18:35:03 -04:00
Dwight
d3e3876751
stack traces
2008-06-27 14:35:05 -04:00
Dwight
0c4751cb78
pad objects when allocated, when appropriate, to make updates faster.
2008-06-26 19:11:19 -04:00
Dwight
3d428ce459
fix zero pointers in deleted lists on alloc()
2008-06-25 18:58:04 -04:00
Dwight
2fc57c4159
change to do ref counts for JSObj objects.
...
should fix OS X
dangerous change.
2008-06-25 17:13:40 -04:00
Dwight
4bab168e0f
better opLogging - smarter with $cmd, log subset of reads option.
2008-06-25 14:25:34 -04:00
Dwight
dc39662994
capped: don't assert on what could be a user error
2008-06-25 13:08:51 -04:00
Dwight
26dea1fcd6
db.dropDatabase();
2008-06-24 17:31:51 -04:00
Dwight
e0ac9757ac
extraneous loops assert
2008-06-12 16:19:29 -04:00
Dwight
3051b961ca
dos2unix
2008-06-06 09:43:15 -04:00
Dwight
877b72efcd
mysterious disappearing blog post fix
2008-06-06 09:38:22 -04:00
Dwight
9fba70e49f
query embedded objects
2008-06-02 20:27:45 -04:00
Dwight
548adc2678
don't assert if key to index too big ; nicer msg too
2008-05-01 10:22:05 -04:00
Dwight
d67a202c14
sai hack
2008-04-30 19:31:54 -04:00
Dwight
8210548d7f
dbproblem.log file
2008-04-25 17:24:27 -04:00
Eliot Horowitz
de0a31a3f0
some asserts
2008-04-01 17:58:33 -04:00
Dwight
8cdedebc9c
jnicallback
2008-03-24 18:04:22 -04:00
Dwight
bdacd93bb8
profiling
2008-03-16 20:59:19 -04:00
Dwight
fba714c583
new dup key implementation
2008-03-13 15:39:09 -04:00
Dwight
d496242919
$natural
2008-03-09 11:05:25 -04:00
Dwight
00008aa0d6
cap by size
2008-03-09 09:40:34 -04:00
Dwight
45b79abf1f
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
...
Conflicts:
db/db.cpp
2008-03-08 23:18:28 -05:00
Dwight
5e68964e9e
capped
2008-03-08 23:16:41 -05:00
Dwight
79552ed639
patch: killcursors more defensive
2008-03-05 16:51:27 -05:00
Dwight
782ceb6f3b
idiot
2008-02-29 12:00:17 -05:00
Dwight
225d58f88e
granular indexing assertion catch.
2008-02-28 16:29:31 -05:00
Dwight
880049d39e
recv()
2008-02-25 19:13:30 -05:00
Dwight
dce3cb2a9e
unindex fix
2008-02-25 18:22:10 -05:00
Dwight
3fc3a61fda
defensive code for corruption of deleted list
2008-02-24 21:45:03 -05:00
Dwight
9cb73f240f
duplicate key indexing fix
2008-02-24 20:16:36 -05:00
Dwight
661156fd1a
timestampts
2008-02-24 11:29:42 -05:00
Dwight
f6c30d15f0
aboutToDelete / checkLocation issue.
2008-02-11 23:38:10 -05:00