]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix extra write
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 30 Apr 2008 17:30:44 +0000 (17:30 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 30 Apr 2008 17:30:44 +0000 (17:30 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6861 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/testing/tcdbtest.c

index 0b044d6ddb2f5920d98ca5fc92b731e3760d3c23..9e035ab460036d5f517e1881512d9b5ed9b2c808 100644 (file)
@@ -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);
         }