xbps_fetch_file: don't fsync(3) before closing fd; slowdowns considerably slow storage.

This commit is contained in:
Juan RP 2013-02-20 10:46:21 +01:00
parent 0c50c0bb2d
commit ae7b76e245
2 changed files with 2 additions and 4 deletions

View File

@ -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"

View File

@ -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;