summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-05-02 15:45:55 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-05-02 15:45:55 +0000
commit32ffb28b2929bcfd1386f26b7fa08007c0feac51 (patch)
tree8b9cc3482509b9302aa15a123117ea832c4f753b
parentbdcf5509649c9e22c99bc6693bbb2dd8c7b7e1ff (diff)
downloadurpmi-32ffb28b2929bcfd1386f26b7fa08007c0feac51.tar
urpmi-32ffb28b2929bcfd1386f26b7fa08007c0feac51.tar.gz
urpmi-32ffb28b2929bcfd1386f26b7fa08007c0feac51.tar.bz2
urpmi-32ffb28b2929bcfd1386f26b7fa08007c0feac51.tar.xz
urpmi-32ffb28b2929bcfd1386f26b7fa08007c0feac51.zip
It shouldn't be necessary to sync to disk when closing rpmdb (esp. on heavily
loaded machines)
-rw-r--r--urpm.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 99afdbfb..7d7aad6b 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2632,7 +2632,6 @@ sub unlock_rpm_db {
#- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
my $LOCK_UN = 8;
#- now everything is finished.
- system("sync");
#- release lock on database.
flock RPMLOCK_FILE, $LOCK_UN;
close RPMLOCK_FILE;
@@ -2666,7 +2665,6 @@ sub unlock_urpmi_db {
#- avoid putting a require on Fcntl ':flock' (which is perl and not perl-base).
my $LOCK_UN = 8;
#- now everything is finished.
- system("sync");
#- release lock on database.
flock LOCK_FILE, $LOCK_UN;
close LOCK_FILE;