Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/bin sync the db



details:   https://anonhg.NetBSD.org/src/rev/6790250ee3bc
branches:  trunk
changeset: 335799:6790250ee3bc
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 24 07:31:51 2015 +0000

description:
sync the db

diffstat:

 external/bsd/blacklist/bin/state.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 6c2150e41062 -r 6790250ee3bc external/bsd/blacklist/bin/state.c
--- a/external/bsd/blacklist/bin/state.c        Sat Jan 24 06:20:21 2015 +0000
+++ b/external/bsd/blacklist/bin/state.c        Sat Jan 24 07:31:51 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: state.c,v 1.11 2015/01/22 17:49:41 christos Exp $      */
+/*     $NetBSD: state.c,v 1.12 2015/01/24 07:31:51 christos Exp $      */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: state.c,v 1.11 2015/01/22 17:49:41 christos Exp $");
+__RCSID("$NetBSD: state.c,v 1.12 2015/01/24 07:31:51 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -152,6 +152,8 @@
 
        switch (rv = (*db->del)(db, &k, 0)) {
        case 0:
+               (*db->sync)(db, 0);
+               /*FALLTHROUGH*/
        case 1:
                if (debug > 1)
                        (*lfun)(LOG_DEBUG, "%s: returns %d", __func__, rv);
@@ -216,6 +218,7 @@
        case 0:
                if (debug > 1)
                        (*lfun)(LOG_DEBUG, "%s: returns %d", __func__, rv);
+               (*db->sync)(db, 0);
                return 0;
        case 1:
                errno = EEXIST;



Home | Main Index | Thread Index | Old Index