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

Lower/Upper limit for $inc

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.5.1
    • Component/s: Querying
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: