From 90195d398eae17ba3b3f75dc83bc90cbd70567a8 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 4 Sep 2016 22:40:05 +1000 Subject: [PATCH] ckdb - option -X to not use the exclusive db load locks --- src/ckdb.c | 7 ++++++- src/ckdb.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index e019b2c1..a357b6b9 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -8993,6 +8993,8 @@ static struct option long_options[] = { { "workinfoid", required_argument, 0, 'w' }, // Disable writing to the db-log file (for testing environments) { "no-db-log", no_argument, 0, 'x' }, + // force disable the exclusive db load locks + { "no-exclusive", required_argument, 0, 'X' }, { "confirm", no_argument, 0, 'y' }, { "confirmrange", required_argument, 0, 'Y' }, { 0, 0, 0, 0 } @@ -9033,7 +9035,7 @@ int main(int argc, char **argv) memset(&ckpcmd, 0, sizeof(ckp)); ckp.loglevel = LOG_NOTICE; - while ((c = getopt_long(argc, argv, "a:Ab:B:c:d:D:f:ghi:IkK:l:L:mM:n:N:o:p:P:q:Q:r:R:s:S:t:Tu:U:vw:xyY:", long_options, &i)) != -1) { + while ((c = getopt_long(argc, argv, "a:Ab:B:c:d:D:f:ghi:IkK:l:L:mM:n:N:o:p:P:q:Q:r:R:s:S:t:Tu:U:vw:xXyY:", long_options, &i)) != -1) { switch(c) { case '?': case ':': @@ -9302,6 +9304,9 @@ int main(int argc, char **argv) case 'x': db_logger = false; break; + case 'X': + exclusive_db = false; + break; case 'y': confirm_sharesummary = true; break; diff --git a/src/ckdb.h b/src/ckdb.h index 142ecc2d..18498749 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -58,7 +58,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.7" -#define CKDB_VERSION DB_VERSION"-2.450" +#define CKDB_VERSION DB_VERSION"-2.451" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__