Changeset: 0cdd0ba6a014 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0cdd0ba6a014
Modified Files:
        tools/merovingian/client/monetdb.c
Branch: hot-snapshot
Log Message:

Retain ability to restore to nonexistent database


diffs (17 lines):

diff --git a/tools/merovingian/client/monetdb.c 
b/tools/merovingian/client/monetdb.c
--- a/tools/merovingian/client/monetdb.c
+++ b/tools/merovingian/client/monetdb.c
@@ -2107,11 +2107,8 @@ command_snapshot_restore(int argc, char 
 
        // check if the database exists
        sabdb *db = NULL;
-       char *err = MEROgetStatus(&db, dbname);
-       if (err != NULL) {
-               fprintf(stderr, "snapshot restore: could not look up database 
'%s': %s", dbname, err);
-               exit(2);
-       }
+       MEROgetStatus(&db, dbname); // ignore errors
+
        if (db != NULL && !force) {
                char answ;
                printf("you are about to overwrite database '%s'.\n", 
db->dbname);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to