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

29070 Commits

Author SHA1 Message Date
Mathias Stearn
ae18bbec33 SERVER-17312 collmod command now handles parsing of all arguments
For the two currently supported engine-specific options, the collmod command
will handle parsing the arguments and tell the CollectionCatalogEntry to
update it's flags option.

This removes the ability of storage engines to have custom options that can
be changed after the collection is created. There were issues related to
argument validation and replication of changes (including for initial sync).
A correct solution will be designed as SERVER-17320.
2015-02-19 19:55:44 -05:00
David Storch
30d9e17410 SERVER-17303 findAndModify upsert calls Collection::insertDocument() directly 2015-02-19 18:47:44 -05:00
Jonathan Reams
2b4f184b74 SERVER-14166 Remove defaults and choices for osx-version-min scons option 2015-02-19 16:58:07 -05:00
Spencer T Brody
eb954e3aec SERVER-17273 Add support for secondaryCatchupPeriodSecs to rs.stepdown shell helper 2015-02-19 16:40:24 -05:00
Eric Milkie
b0e50245a3 SERVER-17330 remove server.h and dependencies; all dead code 2015-02-19 16:06:08 -05:00
David Storch
ae341c89d0 SERVER-14071 do not cache plans which return zero results 2015-02-19 13:44:17 -05:00
Amalia Hawkins
44a8c494fc SERVER-17135 Add permissions on config.settings to backup auth role 2015-02-19 13:24:32 -05:00
Igor Canadi
7d8adb6da8 SERVER-17325 [Rocks] Clean up oplog in background thread
Signed-off-by: Ramon Fernandez <ramon.fernandez@mongodb.com>
2015-02-19 12:14:29 -05:00
Dan Pasette
27e6efa8fe Import wiredtiger-wiredtiger-mongodb-3.0-rc9-1-gfc15500.tar.gz from wiredtiger branch mongodb-3.0 2015-02-19 07:25:04 -05:00
Dan Pasette
4ca4224dae SERVER-17141 Cope with WT_NOTFOUND from WT_SESSION::truncate 2015-02-19 07:24:08 -05:00
Spencer Jackson
1cdc79db66 SERVER-16452 Add IP address to authentication failure error message 2015-02-18 18:32:08 -05:00
David Storch
a6fc69010b SERVER-17109 fix invalid BSON access in listIndexes command 2015-02-18 17:52:22 -05:00
alabid
c56d5c791b SERVER-15192 Remove RollBackPreventer since all logOp listeners are now rollback-safe 2015-02-18 14:11:18 -05:00
Igor Canadi
7281e7b707 SERVER-17292 Optimize RocksIndex
Signed-off-by: Benety Goh <benety@mongodb.com>
2015-02-18 13:16:52 -05:00
Scott Hernandez
5ddbc9274d SERVER-16628: upgrade checker cleanup 2015-02-18 11:24:11 -05:00
alabid
ffb3d64e1a SERVER-15192 Make dbhash and storedFuncMod logOp listeners rollback-safe 2015-02-18 00:05:25 -05:00
David Storch
628c4fb2d1 SERVER-17051 remove runCount() function
This special count path was used only by the DBDirectClient and is no longer needed.
2015-02-17 17:55:34 -05:00
Siyuan Zhou
48c60e81c9 SERVER-16968 Log when we receive a replSetStepDown command
So the logs can distinguish user-initiated stepdowns from system-initiated ones.
2015-02-17 17:15:55 -05:00
Jonathan Abrahams
c678bbf6a4 SERVER-15885: addTagRange & removeTagRange additional tests
Signed-off-by: Randolph Tan <randolph@10gen.com>
2015-02-17 16:57:53 -05:00
Andrew Morrow
490b0b2b14 SERVER-17043 Reattempt failed socket connect when errno is EINTR 2015-02-17 11:57:22 -05:00
Jason Rassi
48e7b856f2 SERVER-17281 IDHackStage::invalidate() dereference correct OpCtx ptr 2015-02-17 11:35:30 -05:00
David Storch
2a4111960f SERVER-17062 rename NEED_FETCH to NEED_YIELD 2015-02-16 20:46:18 -05:00
Andrew Morrow
9887033095 Revert "SERVER-15202: Restore boost 1.49 as default"
This reverts commit 1c49822f77.

The default is now boost 1.56
2015-02-15 12:46:36 -05:00
Mathias Stearn
d47529bb1a SERVER-17141 Don't abort if ENOENT is returned from session->truncate() 2015-02-13 17:39:21 -05:00
Benety Goh
b98296681f SERVER-16559 fix compilation error resulting from use of removed function SharedBuffer::moveFrom() in rocks record store 2015-02-13 17:01:28 -05:00
Spencer Jackson
8ef2743189 SERVER-17278: Enforce BSON BinData length 2015-02-13 16:23:10 -05:00
Kaloian Manassiev
f5fc5c0ab8 SERVER-13339 Cleanup in preparation for removing unused constructor 2015-02-13 16:13:43 -05:00
alabid
dbdb362027 SERVER-15192 Make MigrateFromStatus logOp listener rollback-safe 2015-02-13 15:47:54 -05:00
Mathias Stearn
1c7d3ea807 SERVER-17249 filemd5 shouldn't reuse CanonicalQuery after WCE 2015-02-13 15:29:33 -05:00
Mathias Stearn
133c6fce83 SERVER-17203 Make findAndModify use WCE retry loop for collection creation 2015-02-13 15:29:33 -05:00
Mathias Stearn
5ffcf2f281 SERVER-17062 Make query execution handle WriteConflictExceptions where possible 2015-02-13 15:29:33 -05:00
Mathias Stearn
3d5aee54e4 SERVER-17062 Make WT index cursors tolerant of WCE
The cursor now retains it's original position if a reposition method fails.
This required abandoning the lazy loading of keys and values since we always
need to know where the cursor is positioned.

Additionally, to simplify the code, cursors over unique indexes containing
duplicate keys are now banned. The situations where unique indexes can
contain duplicate entries are transient and should never be observable by a
cursor. If a cursor ever encountered a duplicate key in a unique index, it
indicates corruption.
2015-02-13 15:29:33 -05:00
Mathias Stearn
1438dfd8fb SERVER-17247 allow traceWriteConflictException to be set on startup
This makes it usable with smoke.py
2015-02-13 15:29:33 -05:00
Mathias Stearn
4577311195 SERVER-17062 Move getKeys() up to IndexAccessMethod and make const 2015-02-13 15:29:33 -05:00
Mathias Stearn
2d359dfdd2 SERVER-17062 WiredTigerRecordStore::Iterator WriteConflict work 2015-02-13 15:29:33 -05:00
Mathias Stearn
7286fb36c3 SERVER-17175 Use X lock for $isolated updates and deletes 2015-02-13 15:29:33 -05:00
Mathias Stearn
fccb1246e8 SERVER-17248 WCE retry loop for collection creation on upsert 2015-02-13 15:29:33 -05:00
Mathias Stearn
67eb85c5fd SERVER-17248 listIndexes WCE retry loops 2015-02-13 15:29:33 -05:00
Mathias Stearn
88be59e3c0 SERVER-17248 IndexCatalog shouldn't go to CCE for info it already has
This created the possibility of WCEs where none were necessary.
2015-02-13 15:29:33 -05:00
Mathias Stearn
75f2927bf2 SERVER-17062 AuthIndex should use createIndexOnEmptyCollection
It was using ensureIndex which is illegal inside of a WUOW.
2015-02-13 15:29:33 -05:00
Mathias Stearn
511a231859 SERVER-17287 StatusWith improvements
* Implicit conversions from T and Status.
* StatusWith<Status> banned at compile time.
* toString() strings the value if isOK().
* Can now be streamed to an ostream.
* EqualityComparable to T, Status, and ErrorCodes::Error.

The last two make it possible to use StatusWith in ASSERT_OK and ASSERT_EQ.
2015-02-13 15:29:33 -05:00
Andrew Morrow
05d73815c3 SERVER-16559 Require C++11 and remove conditional compilation 2015-02-13 13:01:12 -05:00
Igor Canadi
c1b5595b5f SERVER-17269 Fix concurrency and sharding tests in Rocks
Signed-off-by: Benety Goh <benety@mongodb.com>
2015-02-13 12:07:09 -05:00
alabid
45aba2114c SERVER-15192 Make AuthzManager logOp listener rollback-safe
The initial version of this commit was initially reverted because
boost::optional<bool> gives spurious warnings due to a GCC bug that
should have been fixed in GCC 4.8.5. This commit makes no
use of boost::optional.
2015-02-13 11:27:07 -05:00
Benety Goh
00fe4ffaf0 SERVER-13916 added scons flag --server-js to build mongod without JavaScript support while still building shell
Additional changes:
    fixed scons --noshell flag
    fixed scons flag --js-engine=none to imply --noshell
2015-02-13 09:15:28 -05:00
Siyuan Zhou
01f5345e66 SERVER-16646 Remove reference of system.indexes in querytests.cpp 2015-02-12 16:15:05 -05:00
Mathias Stearn
6ca5a81e34 SERVER-17271 Fix segfault in WiredTigerKVEngine destructor
Only happens in unittests
2015-02-12 15:24:27 -05:00
Mathias Stearn
347da921b6 SERVER-17271 WiredTiger SizeStorer now uses a single WT_CURSOR for its lifetime 2015-02-12 13:51:20 -05:00
Thomas Rueckstiess
5765560344 SERVER-17267 exclude wtstats template sources from changed path.
added in review: implement Keith's suggestion

Closes #923

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
2015-02-12 09:38:10 -05:00
Dan Pasette
a6c348aa16 Import wiredtiger-wiredtiger-mongodb-3.0-rc9-1-g8eecf94.tar.gz from wiredtiger branch mongodb-3.0 2015-02-12 07:39:45 -05:00