X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=b987cb420ec5892d52a8eaef94ca97aae8ed5bf7;hb=c73d510f965cddf4cf45f9895c45fb818519e200;hp=2aff56bebd04e3c94356b71c8bf5893bb5278c66;hpb=8b162b40f84e891afa340b72c50b98f62ae57106;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 2aff56be..b987cb42 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -994,7 +994,6 @@ notmuch_database_open_verbose (const char *path, " has a newer database format version (%u) than supported by this\n" " version of notmuch (%u).\n", notmuch_path, version, NOTMUCH_DATABASE_VERSION)); - notmuch->mode = NOTMUCH_DATABASE_MODE_READ_ONLY; notmuch_database_destroy (notmuch); notmuch = NULL; status = NOTMUCH_STATUS_FILE_ERROR; @@ -1013,7 +1012,6 @@ notmuch_database_open_verbose (const char *path, " requires features (%s)\n" " not supported by this version of notmuch.\n", notmuch_path, incompat_features)); - notmuch->mode = NOTMUCH_DATABASE_MODE_READ_ONLY; notmuch_database_destroy (notmuch); notmuch = NULL; status = NOTMUCH_STATUS_FILE_ERROR;