Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10523

Lower/Upper limit for $inc

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      I can't believe this hasn't come up yet, I have Google searched for this but couldn't find anything.

      I had a case recently where, while maintaining counters, I wanted an atomic way to ensure that a counter could not pass below 0. Of course currently I have just implemented this in the client side but it would be good to have a server-side edition of this me thinks.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sammaye Sam Millman
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: