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

Lower/Upper limit for $inc

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.5.1
    • Querying
    • None
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: