rstam
|
3108b605a9
|
Only set SlaveOk to false in CommandCollectionSettings if ConnectionMode is ReplicaSet. GetServerInstance just returns the one and only instance unless ConnectionMode is ReplicaSet.
|
14 years ago |
rstam
|
15fb7bb3a7
|
Minor fixes.
|
14 years ago |
rstam
|
d66802746a
|
Fixed CSHARP-225. ReplicaSetConnector.Connect now makes sure that the serverInstance it identifies as primary was connected to using the official replica set configured host name for that server. Also fixed a NullReferenceException in MongoServerInstance.Disconnet.
|
14 years ago |
rstam
|
a987171606
|
Minor change related to CSHARP-225. Replaces a NullReferenceException (which is never a good exception) with a MongoConnectionException with the message "Primary server not found". Doesn't fix CSHARP-255, but gives a better exception.
|
14 years ago |
rstam
|
1d2b1b9d8f
|
Fixed CSHARP-204. The patch supplied with the bug report made sense to me. Thanks to Miguel Pilar for the patch.
|
14 years ago |
rstam
|
acab8e1ecc
|
Added unit test for CSHARP-239. Was unable to reproduce.
|
14 years ago |
rstam
|
99123333a1
|
Delayed creation of default settings objects so that they are created with the latest lower level default values. Moved GuidByteOrder to its own file. MongoDefaults that have matching BsonDefaults are now aliases for the corresponding BsonDefaults (that way the values are always the same).
|
14 years ago |
rstam
|
ddc1db0829
|
Refactored how GuidByteOrder is configured and handled. Instead of allowing it to be configured at the individual property level (which was a pain), it is now configured at the server, database and collection levels. This introduces the restriction that all Guids in the same collection must use the same GuidByteOrder, but this restriction should actually help keep things sane and manageable.
|
14 years ago |
rstam
|
5d9d37bb49
|
Added support for new JavaHistorical GuidByteOrder.
|
14 years ago |
rstam
|
dc4454d4b4
|
Fixed CSHARP-238. Non-string Dictionary keys (and values) no longer have a redundant "_t" element (but will if they're needed of course).
|
14 years ago |
rstam
|
82ce5122d1
|
Implemented CSHARP-234. GenerateId now takes two parameters: container and document. When called from the C# driver the container argument will be a MongoCollection.
|
14 years ago |
rstam
|
654277eb7e
|
Implemented CSHARP-235. MongoDatabase.DropCollection and MongoCollection.Drop no longer throw an exception if the collection does not exist. If the caller needs to know whether the collection actually existed they can examine the Ok property of the CommandResult (or call MongoDatabase.CollectionExists or MongoCollection.Exists beforehand).
|
14 years ago |
rstam
|
89251fcf16
|
Worked on the wording of more exception messages, this time in the Driver project.
|
14 years ago |
rstam
|
fed330f5d4
|
Worked on the wording of hundreds of exception messages. Things like turning them into complete sentences that end in a period and adding relevant values when they are helpful.
|
14 years ago |
rstam
|
a32abf4cb8
|
Added MaxServerCount and ServerCount properties to MongoServer. Modified MongoServer.Create to throw an exception if more than MaxServerCount servers would be created. Added UnregisterServer method to MongoServer (would only be used if client program is talking to many servers but not all at once).
|
14 years ago |
rstam
|
03f61bb5e8
|
Since MongoCursorEnumerator is now public I moved it from the Internal folder to the Core folder.
|
14 years ago |
rstam
|
bf07dc1514
|
Implemented CSHARP-219, support for tailable cursors.
|
14 years ago |
rstam
|
3e81456d0b
|
Added Parse method to BsonDocument taking a JSON string as input. JsonScanner now support single quotes as well as double quotes for string constants.
|
14 years ago |
rstam
|
234d1bf615
|
Added support for Errors and Warnings to ValidateCollectionResult. Tweaked regular expressions used to decode pre 1.9 ResultString.
|
14 years ago |
rstam
|
e51304d3e0
|
Enhanced ValidateCommandResult to extract information from the result string in earlier versions of the server or the tagged elements in server versions 1.9 and above. A little more work remains.
|
14 years ago |
rstam
|
4e89037ef9
|
Implemented CSHARP-231. A class with an Id of type BsonObjectId now uses the new BsonObjectIdGenerator. Also, the use of the NullIdChecker and ZeroIdChecker IdGenerators must now be explicitly turned on: the server supports nulls and zeros as _id values, so by default the driver should also. Some other minor changes to the IdGenerator logic. Lots of new unit tests for Id handling.
|
14 years ago |
rstam
|
f81093352d
|
Fixed CSHARP-230. Dropping a collection now resets the cache used by EnsureIndex to keep track of which indexes have already been created.
|
14 years ago |
rstam
|
16b6e6b21c
|
Further work on CSHARP-228. Replaced the Microsoft and Standard values of GuidByteOrder with LittleEndian and BigEndian, as it's not so much an issue of how Microsoft defines the byte order as it is an issue of the endianness of the platform the code is running on (though it just so happens that Windows most often runs on litle endian platforms). Also reviewed and streamlined the implementation of CombGuidGenerator.
|
14 years ago |
rstam
|
9d3d6f3029
|
Fixed CSHARP-229. All TryParse methods now return false instead of throwing an exception when passed a null string.
|
14 years ago |
rstam
|
a1c9f54678
|
Implemented CSHARP-228. See the new GuidByteOrder enum that can be used to specify what byte order to use when serializing Guids. Sadly this C# driver and all community C# drivers before it have been serializing Guids in Microsoft's internal byte order, which is different than the standard byte order used by all other drivers. The non-standard Microsoft byte order remains the default so as not to break backward compatibility with existing code and data.
|
14 years ago |
rstam
|
7862209bf6
|
Implemented CSHARP-227. Shell JsonOutputMode now uses "new BinData" instead of just "BinData" so output can be pasted into the mongo shell.
|
14 years ago |
rstam
|
5e8642ec14
|
Implemented CSHARP-226. MongoGridFS.Find methods now return a MongoCursor instead of an IEnumerable. This should be backward compatible.
|
14 years ago |
rstam
|
973e87bd20
|
Merged in pull request 59 from Justin Dearing to allow passing a Hashtable to the constructor of a QueryDocument or an UpdateDocument. Made equivalent changes to the rest of the classes that derive from BsonDocument. These new constructors facilitate creating these objects from Powershell.
|
14 years ago |
Justin Dearing
|
fd66d91c45
|
Added IDictionary constructors to UpdateDocument and QueryDocument so powershell can autocast them.
|
14 years ago |
rstam
|
6073eb5624
|
Fixed CSHARP-224. GetMore now gets the connection it needs from the server instead of directly from the server instance so that a RequestStart in scope will be honored.
|
14 years ago |
rstam
|
cecc05961c
|
Implemented CSHARP-223. Added Shutdown method to MongoServer.
|
14 years ago |
rstam
|
ab229d3f35
|
Added unit test for MongoGridFSStream OpenCreate with metadata.
|
14 years ago |
rstam
|
9068d8ae7c
|
Merge git://github.com/mhamrah/mongo-csharp-driver into mhamrah-master
|
14 years ago |
rstam
|
988a4a95a0
|
The generic version of GeoNearHits was implementing IEnumerable<T> twice (once due to inheritance), which caused LINQ methods like Skip to not work. The fix is to make the non-generic base class of GeoNearHits implement the non-generic IEnumerable.
|
14 years ago |
mhamrah
|
fdfcc71f4a
|
Adding Metadata Support for FileStream Operations
|
14 years ago |
rstam
|
5c69475fba
|
Minor simplification of round robin algorithm for slaveOk=true.
|
14 years ago |
rstam
|
22051dd0e9
|
Fixed bug in load balancing that was causing all reads to a replica set to go to the same server even when slaveOk=true.
|
14 years ago |
rstam
|
5d15687056
|
Implemented CSHARP-220. Query.And and Query.Or now ignore any clauses that are null.
|
14 years ago |
rstam
|
bd6fa63bc4
|
Implemented CSHARP-221. Added UpdateMD5 property to MongoGridFSStream.
|
14 years ago |
rstam
|
aa04aba52c
|
Did some refactoring on the new support for ShouldSerializeXyz methods.
|
14 years ago |
rstam
|
f7308fb5e5
|
Minor refactoring.
|
14 years ago |
rstam
|
e33b4c1cac
|
Fixed CSHARP-217. KillCursor checks whether corresponding server is still connected before trying to acquire a connection and send a kill cursor message.
|
14 years ago |
rstam
|
ed96fc1583
|
Fixed CSHARP-218. We now provide a better exception when attempting to deserialize a value type (which is not supported yet).
|
14 years ago |
Syed Saleem Javid Brahmanapalli
|
a9392f3a25
|
Added some comments
|
14 years ago |
saleemjavid
|
950b293fcd
|
The changes for ShouldSerializeXXX implementation
|
14 years ago |
rstam
|
1091cadb17
|
Fixed CSHARP-215. Save now works even when _id is a string in memory represented as an ObjectId in the database.
|
14 years ago |
rstam
|
c20cdf8663
|
Implemented BsonClassMap.IsClassMapRegistered.
|
14 years ago |
rstam
|
33cc26c64a
|
Fixed CSHARP-214. FindAndModify and FindAndRemove no longer throw an exception when there is no matching document.
|
14 years ago |
rstam
|
3d96d04d28
|
Fixed CSHARP-213. GridFS Upload might need to call Stream.Read several times to get a full chunk to upload.
|
14 years ago |
rstam
|
88d5459bf2
|
Enhanced conversion of Hashtable to BsonDocument to map embedded Hashtables to embedded BsonDocuments. This will prove useful in Powershell scripts.
|
14 years ago |