diff options
author | drh <drh@noemail.net> | 2015-09-19 19:36:13 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-09-19 19:36:13 +0000 |
commit | b97ad0297c595f2965ca2f082334e7d925054a21 (patch) | |
tree | f86bc31a56058380123d6e7711c4a30324714736 /tool/fuzzershell.c | |
parent | dc38495715fc2dca049e963d5150d4ba4b6e53d7 (diff) | |
download | sqlite-b97ad0297c595f2965ca2f082334e7d925054a21.tar.gz sqlite-b97ad0297c595f2965ca2f082334e7d925054a21.zip |
Add the --disable-lookaside option to the fuzzershell utility program.
FossilOrigin-Name: 0b04374449c8279ad038def7c18cd74f180a0515
Diffstat (limited to 'tool/fuzzershell.c')
-rw-r--r-- | tool/fuzzershell.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tool/fuzzershell.c b/tool/fuzzershell.c index e483a5ff2..fa80b3561 100644 --- a/tool/fuzzershell.c +++ b/tool/fuzzershell.c @@ -322,6 +322,7 @@ static void showHelp(void){ "Options:\n" " --autovacuum Enable AUTOVACUUM mode\n" " --database FILE Use database FILE instead of an in-memory database\n" +" --disable-lookaside Turn off lookaside memory\n" " --heap SZ MIN Memory allocator uses SZ bytes & min allocation MIN\n" " --help Show this help text\n" " --lookaside N SZ Configure lookaside for N slots of SZ bytes each\n" @@ -457,6 +458,7 @@ int main(int argc, char **argv){ const char *zDbName = 0; /* Name of an on-disk database file to open */ iBegin = timeOfDay(); + sqlite3_shutdown(); zFailCode = getenv("TEST_FAILURE"); g.zArgv0 = argv[0]; zPrompt = "<stdin>"; @@ -473,6 +475,10 @@ int main(int argc, char **argv){ zDbName = argv[i+1]; i += 1; }else + if( strcmp(z,"disable-lookaside")==0 ){ + nLook = 1; + szLook = 0; + }else if( strcmp(z, "f")==0 && i+1<argc ){ i++; goto addNewInFile; |