From: Eric Bollengier Date: Wed, 30 Apr 2008 17:30:44 +0000 (+0000) Subject: ebl fix extra write X-Git-Tag: Release-3.0.0~1522 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b48b99dabf4211f5edc09a026c95b55a5fa0e80e;p=bacula%2Fbacula ebl fix extra write git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6861 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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); }