Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4700

Use limit 1 instead of -1

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0.rc1
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      https://github.com/mongodb/mongoid/commit/2849ebc7260cfb13056b90bdecc42fa8116da4ff added a limit of -1 which is then abs'ed to get a usable limit of 1. This is confusing; can 1 be specified in the first place?

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: