[Rpm-maint] [rpm-software-management/rpm] RPM+NDB doesn't implement rpmpkgSetFsync() (#288)

Jeff Johnson notifications at github.com
Sat Jul 29 17:34:35 UTC 2017

Changing nab_SetFsync() to do the obvious (but perhaps naive) passing:
static void ndb_SetFSync(rpmdb rdb, int enable)
    struct ndbEnv_s *ndbenv = rdb->db_dbenv;
    if (ndbenv->xdb)
        rpmxdbSetFsync(ndbenv->xdb, enable);
    if (ndbenv->pkgdb)
        rpmpkgSetFsync(ndbenv->pkgdb, enable);

leads to a slight (but still minutes, not seconds) improvement in --rebuilddb performance:
[jbj at ji rpm]$ /usr/bin/time sudo ./rpmdb --rebuilddb --ndb
3.42user 4.01system 7:34.55elapsed 1%CPU (0avgtext+0avgdata 46952maxresident)k
97664inputs+3641232outputs (0major+520873minor)pagefuls 0swaps

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170729/b9f4df69/attachment-0001.html>

More information about the Rpm-maint mailing list