revised patch to DiskFile.py for stalled GET
This commit is contained in:
Kaleb S. KEITHLEY 2013-01-10 10:26:35 -05:00
parent c8c09b274a
commit fc58c44143
2 changed files with 16 additions and 20 deletions

View File

@ -1,19 +1,12 @@
*** ufo/gluster/swift/common/DiskFile.py.orig 2012-12-21 11:40:12.763297073 -0500 --- ufo/gluster/swift/common/DiskFile.py.orig 2012-12-21 11:40:12.763297073 -0500
--- ufo/gluster/swift/common/DiskFile.py 2012-12-21 11:14:59.248241815 -0500 +++ ufo/gluster/swift/common/DiskFile.py 2013-01-09 16:44:02.607838685 -0500
*************** @@ -55,7 +55,8 @@
*** 55,61 ****
def __init__(self, path, device, partition, account, container, obj, def __init__(self, path, device, partition, account, container, obj,
logger, keep_data_fp=False, disk_chunk_size=65536, logger, keep_data_fp=False, disk_chunk_size=65536,
! uid=DEFAULT_UID, gid=DEFAULT_GID): - uid=DEFAULT_UID, gid=DEFAULT_GID):
self.disk_chunk_size = disk_chunk_size + uid=DEFAULT_UID, gid=DEFAULT_GID, iter_hook=None):
#Don't support obj_name ending/begining with '/', like /a, a/, /a/b/ etc + self.iter_hook = iter_hook
obj = obj.strip('/')
--- 55,61 ----
def __init__(self, path, device, partition, account, container, obj,
logger, keep_data_fp=False, disk_chunk_size=65536,
! uid=DEFAULT_UID, gid=DEFAULT_GID, iter_hook=None):
self.disk_chunk_size = disk_chunk_size self.disk_chunk_size = disk_chunk_size
#Don't support obj_name ending/begining with '/', like /a, a/, /a/b/ etc #Don't support obj_name ending/begining with '/', like /a, a/, /a/b/ etc
obj = obj.strip('/') obj = obj.strip('/')

View File

@ -33,7 +33,7 @@
Summary: Cluster File System Summary: Cluster File System
Name: glusterfs Name: glusterfs
Version: 3.3.1 Version: 3.3.1
Release: 7%{?dist} Release: 8%{?dist}
License: GPLv3+ and (GPLv2 or LGPLv3+) License: GPLv3+ and (GPLv2 or LGPLv3+)
Group: System Environment/Base Group: System Environment/Base
Vendor: Red Hat Vendor: Red Hat
@ -1111,6 +1111,9 @@ fi
%changelog %changelog
* Thu Jan 10 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.3.1-8
- revised patch to DiskFile.py for stalled GET
* Wed Jan 9 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.3.1-7 * Wed Jan 9 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.3.1-7
- additional file ownerships and associated %ghosts from upstream - additional file ownerships and associated %ghosts from upstream
- add BuildRequires libaio-devel to auto-enable AIO in configure, - add BuildRequires libaio-devel to auto-enable AIO in configure,