summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/utilities/util_downgrade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/utilities/util_downgrade.c')
-rw-r--r--src/third_party/wiredtiger/src/utilities/util_downgrade.c69
1 files changed, 34 insertions, 35 deletions
diff --git a/src/third_party/wiredtiger/src/utilities/util_downgrade.c b/src/third_party/wiredtiger/src/utilities/util_downgrade.c
index e03544f8422..6b7bcac32dc 100644
--- a/src/third_party/wiredtiger/src/utilities/util_downgrade.c
+++ b/src/third_party/wiredtiger/src/utilities/util_downgrade.c
@@ -13,44 +13,43 @@ static int usage(void);
int
util_downgrade(WT_SESSION *session, WT_CONNECTION *conn, int argc, char *argv[])
{
- WT_DECL_RET;
- int ch;
- char config_str[128], *release;
-
- release = NULL;
- while ((ch = __wt_getopt(progname, argc, argv, "V:")) != EOF)
- switch (ch) {
- case 'V':
- release = __wt_optarg;
- break;
- case '?':
- default:
- return (usage());
- }
- argc -= __wt_optind;
-
- /*
- * The release argument is required.
- * There should not be any more arguments.
- */
- if (argc != 0 || release == NULL)
- return (usage());
-
- if ((ret = __wt_snprintf(config_str, sizeof(config_str),
- "compatibility=(release=%s)", release)) != 0)
- return (util_err(session, ret, NULL));
- if ((ret = conn->reconfigure(conn, config_str)) != 0)
- return (util_err(session, ret, "conn.downgrade"));
-
- return (0);
+ WT_DECL_RET;
+ int ch;
+ char config_str[128], *release;
+
+ release = NULL;
+ while ((ch = __wt_getopt(progname, argc, argv, "V:")) != EOF)
+ switch (ch) {
+ case 'V':
+ release = __wt_optarg;
+ break;
+ case '?':
+ default:
+ return (usage());
+ }
+ argc -= __wt_optind;
+
+ /*
+ * The release argument is required. There should not be any more arguments.
+ */
+ if (argc != 0 || release == NULL)
+ return (usage());
+
+ if ((ret = __wt_snprintf(
+ config_str, sizeof(config_str), "compatibility=(release=%s)", release)) != 0)
+ return (util_err(session, ret, NULL));
+ if ((ret = conn->reconfigure(conn, config_str)) != 0)
+ return (util_err(session, ret, "conn.downgrade"));
+
+ return (0);
}
static int
usage(void)
{
- (void)fprintf(stderr,
- "usage: %s %s "
- "downgrade -V release\n",
- progname, usage_prefix);
- return (1);
+ (void)fprintf(stderr,
+ "usage: %s %s "
+ "downgrade -V release\n",
+ progname, usage_prefix);
+ return (1);
}