Browse Source

ckdb - option -X to not use the exclusive db load locks

master
kanoi 8 years ago
parent
commit
90195d398e
  1. 7
      src/ckdb.c
  2. 2
      src/ckdb.h

7
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;

2
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__

Loading…
Cancel
Save