xbps_fetch_file: don't fsync(3) before closing fd; slowdowns considerably slow storage.
This commit is contained in:
parent
0c50c0bb2d
commit
ae7b76e245
@ -64,7 +64,7 @@
|
||||
*/
|
||||
#define XBPS_PKGINDEX_VERSION "1.6"
|
||||
|
||||
#define XBPS_API_VERSION "20130207-1"
|
||||
#define XBPS_API_VERSION "20130220"
|
||||
|
||||
#ifndef XBPS_VERSION
|
||||
#define XBPS_VERSION "UNSET"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2009-2012 Juan Romero Pardines
|
||||
* Copyright (c) 2009-2013 Juan Romero Pardines
|
||||
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -273,8 +273,6 @@ xbps_fetch_file(struct xbps_handle *xhp, const char *uri, const char *flags)
|
||||
rv = -1;
|
||||
goto out;
|
||||
}
|
||||
/* sync and close fd */
|
||||
(void)fsync(fd);
|
||||
(void)close(fd);
|
||||
fd = -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user