]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/patches/testing/tcdbtest.c
ebl Update to use a separate db connexion to compute and
[bacula/bacula] / 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);
         }