limit=0 in sqlalchemy means 0 instead of unlimit

Bug #1337191 reported by Feilong Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
Medium
Feilong Wang
Feilong Wang (flwang)
Changed in marconi:
assignee: nobody → Fei Long Wang (flwang)
importance: Undecided → Medium
Revision history for this message
peng fei wang (wpf) wrote :

Is it the conversion that limit=0 means unlimited records?

from the current storage controller for mongodb and sqlalchemy , limit=0 is meaningful though it does not make sence, the code will only check whether it's None or not , if None ,then unlimited , or not event it's 0.

Revision history for this message
peng fei wang (wpf) wrote :

I mean that even in the Non-Pool context, it means 0 either.

Feilong Wang (flwang)
Changed in marconi:
milestone: none → juno-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to marconi (master)

Fix proposed to branch: master
Review: https://review.openstack.org/105353

Changed in marconi:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to marconi (master)

Reviewed: https://review.openstack.org/105353
Committed: https://git.openstack.org/cgit/openstack/marconi/commit/?id=b02e9c1089503dee99e303229d40d4917505243e
Submitter: Jenkins
Branch: master

commit b02e9c1089503dee99e303229d40d4917505243e
Author: Fei Long Wang <email address hidden>
Date: Tue Jul 8 16:50:58 2014 +1200

    limit=0 in sqlalchemy means 0 instead of unlimited

    We're using limit=0 to query unlimited records. Unfornuately,
    it doesn't work when a sql based database is used as pool
    management database. In sqlalchemy, it means 0. This patch
    will check if the limit is 0 to decide if applying the
    limit() query for sqlalchemy.

    Closes-Bug: 1337191

    Change-Id: Iefc07ac41b17f52f7aa6607b0eb83dbc4cdef088

Changed in marconi:
status: In Progress → Fix Committed
Changed in marconi:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in zaqar:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.