lockutils - API for setting up lock_path/lock_file_prefix

Bug #1065524 reported by Mark McLoughlin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Medium
Zhongyue Luo

Bug Description

See https://review.openstack.org/14139

Rather than passing in the lock_path and lock_file_prefix params to the decorator, there should be a simple API which you call to set up the locking mechanism

Mark McLoughlin (markmc)
affects: openstack-common → oslo
Zhongyue Luo (zyluo)
Changed in oslo:
assignee: nobody → Zhongyue Luo (zyluo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (master)

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

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

Reviewed: https://review.openstack.org/28399
Committed: http://github.com/openstack/oslo-incubator/commit/b873454819df6ef35b22b92445bfb8675b7ac7c1
Submitter: Jenkins
Branch: master

commit b873454819df6ef35b22b92445bfb8675b7ac7c1
Author: Zhongyue Luo <email address hidden>
Date: Tue May 7 17:25:34 2013 +0900

    Added convenience APIs for lockutils

    The lock_file_prefix for each project doesn't need to be configurable or
    frequently changed. This patch provides a convenience API which returns
    a partial object of the synchronized decorator to avoid passing the prefix
    each time locks are used.

    The set_defaults method is also provided to change the default value of
    lock_path when needed.

    Fixes bug #1065524

    Change-Id: I7b67f0a482da4be6d53a70db5bbd22dc91bdc10c

Changed in oslo:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in oslo:
milestone: havana-1 → 2013.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.