1
0
Fork 0

Bug fix/small issues 1608 (#3049)

* extend linenoise character buffer size

* dont make it throw exceptions all the time

* set INSTANCE to nullptr at a later stage

otherwise a nullptr may be accessed during shutdown
This commit is contained in:
Jan 2017-08-17 21:35:41 +02:00 committed by Frank Celler
parent e612aad2a3
commit b4c58d757f
4 changed files with 5 additions and 5 deletions

View File

@ -533,8 +533,8 @@ struct linenoiseCompletions {
vector<Utf32String> completionStrings;
};
#define LINENOISE_DEFAULT_HISTORY_MAX_LEN 100
#define LINENOISE_MAX_LINE 4096
#define LINENOISE_DEFAULT_HISTORY_MAX_LEN 128
#define LINENOISE_MAX_LINE 8192
// make control-characters more readable
#define ctrlChar(upperCaseASCII) (upperCaseASCII - 0x40)

View File

@ -188,6 +188,5 @@ AuthInfo* AuthenticationFeature::authInfo() {
return _authInfo;
}
void AuthenticationFeature::unprepare() {}
void AuthenticationFeature::unprepare() { INSTANCE = nullptr; }
void AuthenticationFeature::stop() { INSTANCE = nullptr; }

View File

@ -42,7 +42,6 @@ class AuthenticationFeature final
void validateOptions(std::shared_ptr<options::ProgramOptions>) override final;
void prepare() override final;
void start() override final;
void stop() override final;
void unprepare() override final;
bool isActive() const { return _active && isEnabled(); }

View File

@ -3063,6 +3063,8 @@ static void JS_CollectionsVocbase(
};
colls = GetCollectionsCluster(vocbase);
} else {
// no cleanup needed
cleanup = []() {};
colls = vocbase->collections(false);
}