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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 0.0.6
    • Affects Version/s: 0.0.5
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Kristofer Brandow (Inactive)
              Reporter:
              Kristofer Brandow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: