skip the database open for the unused table to keep it from erroring out
authorArt Cancro <ajc@citadel.org>
Tue, 25 Jul 2023 15:34:07 +0000 (06:34 -0900)
committerArt Cancro <ajc@citadel.org>
Tue, 25 Jul 2023 15:34:07 +0000 (06:34 -0900)
citadel/utils/ctdldump.c

index 1dc3f45bb4af2726c43731ad20850ef3ce939a2e..d3a91e3d483721f29b73487ce85e5c86d0d296e5 100644 (file)
@@ -537,7 +537,9 @@ int main(int argc, char **argv) {
        src_dbenv = open_dbenv(src_dir);
        printf("begin|\n");
        for (i = 0; i < MAXCDB; ++i) {
-               export_table(i, src_dbenv);
+               if (i != CDB_UNUSED1) {                 // nothing in this slot so don't complain if it's missing
+                       export_table(i, src_dbenv);
+               }
        }
        close_dbenv(src_dbenv);
        printf("end|\n");