diff options
author | Peter Portante <peter.portante@redhat.com> | 2013-07-08 14:10:45 -0400 |
---|---|---|
committer | Luis Pabon <lpabon@redhat.com> | 2013-07-10 15:49:26 -0700 |
commit | 677d30716978615d0499344ac0a62c2755a486cf (patch) | |
tree | b86a156f120bdcd6f10d6b9998ef20b80cf50639 /gluster/swift/common/constraints.py | |
parent | f8d876248d29fa7f4857ac8ca02324795ba53353 (diff) |
Final forward port of PDQ performance patches
Change-Id: I4ef131b3cc7648d4571a4d854029efb1aff8b901
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Reviewed-on: http://review.gluster.org/5305
Reviewed-by: Luis Pabon <lpabon@redhat.com>
Tested-by: Luis Pabon <lpabon@redhat.com>
Diffstat (limited to 'gluster/swift/common/constraints.py')
-rw-r--r-- | gluster/swift/common/constraints.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gluster/swift/common/constraints.py b/gluster/swift/common/constraints.py index ce1df31..9a4d57e 100644 --- a/gluster/swift/common/constraints.py +++ b/gluster/swift/common/constraints.py @@ -91,23 +91,8 @@ def gluster_check_object_creation(req, object_name): # Replace the original check object creation with ours swift.common.constraints.check_object_creation = gluster_check_object_creation -# Save the original check mount -__check_mount = swift.common.constraints.check_mount - - -# Define our new one which invokes the original -def gluster_check_mount(root, drive): - # FIXME: Potential performance optimization here to not call the original - # check mount which makes two stat calls. We could do what they do with - # just one. - if __check_mount(root, drive): - return True - - return Glusterfs.mount(root, drive) - - # Replace the original check mount with ours -swift.common.constraints.check_mount = gluster_check_mount +swift.common.constraints.check_mount = Glusterfs.mount # Save the original Ring class __Ring = _ring.Ring |