Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 5, 2011
  1. Make SerializableBSONObject.checkID return a new doc, so it can work …

    authored
    …with immutable doc types
    
    Caller must replace the doc with the returned one.
Commits on Jul 4, 2011
  1. @bwmcadams

    Release r0.2.5

    bwmcadams authored
  2. @bwmcadams

    Was using same collection name to test batch inserts in both concurrency

    bwmcadams authored
    and normal test which caused test failures.  Fixed.
  3. @bwmcadams
  4. @bwmcadams

    Release r0.2.0

    bwmcadams authored
Commits on Jul 2, 2011
  1. Change CompletableWriteRequest to throw an exception in same cases Ja…

    authored
    …va driver would
    
    Java driver CommandResult.java throwOnError throws if !ok or
    if the "err" field exists. Previously this code would throw
    if the "errmsg" field exists.
    
    Even after looking at the mongo server's C++ for a bit I can't
    figure out exactly what "err" vs. "errmsg" is, but ...
    
    One case where CompletableWriteRequest didn't throw, before
    this patch, was a duplicate key on insert. This patch
    fixes that to complete the future with an exception.
Commits on Jul 1, 2011
  1. Convert null on the wire to an absent document field rather than None

    authored
    The problem is that if you getAs[String] and it's None, then None
    is not a String. The None approach would only work if all other
    values were stored as Some(value) instead of just value.
    getAs already generates a None if the field is missing, so there's
    no need to actually store a None in the map, it works properly
    if we just omit the field entirely.
    
    Or another way to put it, we don't want
      getAs[String]("err")
    to potentially return Some(None), which it did in
    MongoConnectionHandler.
  2. In boolCmdResult, do get("ok") not getAs[Double]

    authored
    Apparently it does not have to be a double, as the cases
    in the match already indicated.
  3. Make BSONDocument.checkedCast handle AnyVal types

    authored
    Unfortunately this gets a good bit more complex, but
    the previous code could not convert an Integer to an Int
    so it was broken.
  4. In BSONDocument.getAs and friends, do a runtime type check

    authored
    The issue asInstanceOf[A] calls didn't have any effect
    at runtime, so getAs[String] would actually return any
    type at all without throwing an exception.
    
    Use manifest[A].erasure.cast instead to force a runtime
    exception if the type is incorrect.
  5. Handle DeleteMessage and UpdateMessage replies in addition to InsertM…

    authored
    …essage
    
    Otherwise delete and update hit the "unknown" case.
Commits on Jun 29, 2011
  1. @bwmcadams

    Release r0.2.0

    bwmcadams authored
  2. @bwmcadams

    Release r0.2.0

    bwmcadams authored
  3. @bwmcadams

    Release r0.2.0

    bwmcadams authored
  4. @bwmcadams
  5. @bwmcadams
Commits on Jun 26, 2011
  1. @bwmcadams
Commits on Jun 17, 2011
  1. @bwmcadams

    Closer to sane on some of the "Working" parts here. Figuring out the

    bwmcadams authored
    type class flow from the read side has been painful mentally and compile
    wise
Commits on Jun 12, 2011
  1. @bwmcadams
  2. @bwmcadams
  3. @bwmcadams
  4. @bwmcadams
Commits on Jun 7, 2011
  1. @bwmcadams

    Tweak deps

    bwmcadams authored
  2. @bwmcadams

    Fixed project defs.

    bwmcadams authored
Commits on Jun 2, 2011
  1. @bwmcadams
  2. @bwmcadams

    Decided using chained ThrownExpectations is a bad approach as noted by

    bwmcadams authored
    several people.  Will build up shared examples etc instead.
  3. @bwmcadams

    Was testing a value after the callback was defined, NOT after the call.

    bwmcadams authored
    ThrownExpectations exposed this brokenness.
  4. @bwmcadams

    Specs2 doesn't fail unless the LAST matcher does; In some cases I need

    bwmcadams authored
    more discreet multi matching for concurrency testing.  Mixed in
    ThrownExpectations trait to change this.
  5. @bwmcadams

    Release r0.1.0

    bwmcadams authored
  6. @bwmcadams
Commits on May 31, 2011
  1. @bwmcadams

    FindAndRemove works!

    bwmcadams authored
Commits on May 30, 2011
  1. @bwmcadams

    In pretty good shape; need to iron out a bit more in findAndRemove but

    bwmcadams authored
    my battery has about 2 minutes left and next compile will nuke it.
Something went wrong with that request. Please try again.