Commits on Apr 3, 2012
Commits on Mar 30, 2012
  1. Added try/finally block to method com.mongodb.gridfs.GridFSDBFile.wri…

    breinero committed Mar 30, 2012
    …teTo( File f ) which closes the
    an OutputStream instantiated at the beginning of the method. Properly closing the output stream addresses a potential memory leak.
Commits on Mar 28, 2012
  1. Jira ticket; JAVA-529

    breinero committed Mar 28, 2012
    NumberFormatException thrown within method parseNumber
    is now caught and chained as a JSONParseException
Commits on Mar 22, 2012
  1. Merge pull request #68 from havocp/jmx-already-exists

    jyemin committed Mar 22, 2012
    Handle in DBPortPool by replacing use of hashCode() in the object name with a monotonically increasing integer value.
  2. Use an incrementing serial to name DBPortPool MBean

    havocp committed Mar 18, 2012
    Object.hashCode is not guaranteed to be unique even for
    objects that are live at the same time.
    This may be because the garbage collector can move objects
    around and the hashCode is based on the object's location
    the first time hashCode is called, not its current location.
    This fixes a failure to register the mbean due to name
    collisions caused by hashCode collisions.
    The incrementing serial is probably more friendly than
    a random hashCode number anyhow.
  3. Clarified the LazyDBEncoder test

    jyemin committed Mar 22, 2012
Commits on Mar 15, 2012
  1. JAVA-538: Returning reserved connection even of hostNeeded is not nul…

    jyemin committed Mar 12, 2012
    …l, if the reserved connection is to the same host
Commits on Mar 12, 2012
  1. Removed need for lib.major and lib.minor in by parsi…

    jyemin committed Mar 12, 2012
    …ng lib.version with propertyregexp from ant-contrib
  2. Updating lib.minor

    jyemin committed Mar 12, 2012
  3. JAVA-272: Fixed OSGi manifest

    jyemin committed Mar 12, 2012
  4. JAVA-522: Add constructor to CommandResult that takes a command. Fix …

    jyemin committed Mar 12, 2012
    …NPE when command is null
Commits on Mar 11, 2012
Commits on Mar 10, 2012
  1. JAVA-537: Make DBCursor Closeable

    jyemin committed Mar 10, 2012
  2. Simplified assertion

    jyemin committed Mar 10, 2012
  3. Reduced memory consumption by removing all the unecessary buffers and…

    jyemin committed Mar 10, 2012
    … instead doing much simpler decoding of utf8 and cstrings
Commits on Mar 2, 2012
  1. Added pipe(OutputStream os) to LazyBSONObject to pipe raw bytes

    jyemin committed Mar 2, 2012
    Added equals and hashCode to LazyBSONOBject to compare and hash the raw bytes
Commits on Mar 1, 2012
Commits on Feb 29, 2012
  1. Added entrySet() implementation for LazyBSONObject, which will perfor…

    jyemin committed Feb 29, 2012
    …m much better than using keySet()/get(String key)
  2. Fixed a number of issues with LazyBSONObject class

    jyemin committed Feb 29, 2012
    1. Changed sizeCString method to that is assume offset is on the first character of the cstring, not the character preceding it, and adjusted all called to account for that
    2. Changed name of LazyBSONIterator to LazyBSONKeyIterator and made it package private, since it should not be public.
    3. Changed implemenation of the get(String key) method so that it doesn't require the creation an an array of ElementRecord for all preceding keys, just to get the value of this key
    4. Added a getElements method that return an array of all fields, for use by LazyBSONList
    5. Fixed a buffer overrun that will occur when the document contains a field of type BSON.REGEX
  3. Simplified decode method to use much less memory for small documents.…

    jyemin committed Feb 29, 2012
    … Before it would use a minumum of 4K per document. Not it allocates an array of exactly the right size.
    Got rid of unnecessary _buffer field, because ownership of each buffer is handed off to the callback and can't be re-used anyway
Commits on Feb 27, 2012
  1. fix a bug about GridFSDBFile.MyInputStream.skip not returning the app…

    dgottlieb committed Feb 27, 2012
    …ropriate amount when the filesize is not a multiple of chunk size
Commits on Feb 24, 2012
  1. replaced println with assert

    jyemin committed Feb 24, 2012
  2. More Mongo instance cleanup

    jyemin committed Feb 24, 2012
  3. JAVA-332: Have GridFSDBInputFile.MyInputStream.skip be smart about no…

    dgottlieb committed Feb 24, 2012
    …t fetching grid fs chunks that are being entirely skipped over