Change in vdsm[master]: block: use the contextmanager for mapMetaOffset

Federico Simoncelli fsimonce at redhat.com
Fri Mar 21 18:26:53 UTC 2014


Federico Simoncelli has posted comments on this change.

Change subject: block: use the contextmanager for mapMetaOffset
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/25988/1/vdsm/storage/blockSD.py
File vdsm/storage/blockSD.py:

Line 735: 
Line 736:     _mdSlotLock = threading.Lock()
Line 737: 
Line 738:     @contextmanager
Line 739:     def mapMetaOffset(self, vol_name, slotSize):
acquireNewMetaOffset?
Line 740:         with self._mdSlotLock:
Line 741:             if self.getVersion() in VERS_METADATA_LV:
Line 742:                 yield self.getVolumeMetadataOffsetFromPvMapping(vol_name)
Line 743:             else:


-- 
To view, visit http://gerrit.ovirt.org/25988
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Id1496238ea4f9a1902f816b20959ce3379e87871
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken at redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list