Spring Data MongoDB
  1. Spring Data MongoDB
  2. DATAMONGO-622

An unversioned object should be created using insert(…) instead of save.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 GA
    • Fix Version/s: 1.2.1, 1.3 M1
    • Component/s: Core
    • Labels:
      None

      Description

      MongoTemplate.doSaveVersioned(…) uses doSave(…) to store an unversioned object. It should rather use doInsert(…) to avoid race conditions on concurrent inserts.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Oliver Gierke
            Reporter:
            Oliver Gierke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: