Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-430

bson.Document.Delete and bson.Document.Prepend are subtly broken

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.6
    • Affects Version/s: 0.0.5
    • Component/s: BSON
    • None

      The Delete and Prepend methods for bson.Document are broken. The Delete method does not reorder the index used to find a key, so when a document there is a chance that other documents cannot be deleted after. Prepend does not properly reindex the document, so when an item is prepended it is not given a proper entry into the sorted index.

      To solve the Delete and Prepend method issues, do a complete reindex after these methods are called to ensure that the index is properly sorted.

            Assignee:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: