From 8c644c52e1c96192619108fdd5670bef389da34f Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 30 Apr 2008 17:30:44 +0000 Subject: [PATCH] ebl fix extra write git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6861 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/testing/tcdbtest.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bacula/patches/testing/tcdbtest.c b/bacula/patches/testing/tcdbtest.c index 0b044d6ddb..9e035ab460 100644 --- a/bacula/patches/testing/tcdbtest.c +++ b/bacula/patches/testing/tcdbtest.c @@ -158,11 +158,7 @@ int main(int argc, char **argv) while((key = tchdbiternext2(hdb)) != NULL){ value = tchdbget3(hdb, key, strlen(key)+1, &elt, sizeof(elt)); if (value > 0) { - elt.seen=1; - if (!tchdbputasync(hdb, key, strlen(key)+1, &elt, sizeof(elt))) { - ecode = tchdbecode(hdb); - fprintf(stderr, "put error: %s\n", tchdberrmsg(ecode)); - } + elt.seen=1; // check seen element } else { fprintf(stderr, "can't find %s in hash\n", line); } -- 2.39.5