mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-10 02:06:08 -04:00
exit if corruption detected at startup
This commit is contained in:
2
Msg3.cpp
2
Msg3.cpp
@ -785,7 +785,7 @@ bool Msg3::doneScanning ( ) {
|
||||
// if shutting down gb then limit to 20 so we can shutdown because
|
||||
// it can't shutdown until all threads are out of the queue i think
|
||||
if ( g_process.m_mode == EXIT_MODE && max < 0 ) {
|
||||
log("msg3: forcing retries to 0 because shutting down");
|
||||
//log("msg3: forcing retries to 0 because shutting down");
|
||||
max = 0;
|
||||
}
|
||||
|
||||
|
@ -337,6 +337,7 @@ bool RdbMap::verifyMap2 ( ) {
|
||||
KEY1(lastKey,m_ks),KEY0(lastKey));
|
||||
log("db: k.n1=%016"XINT64" n0=%016"XINT64"",KEY1(k,m_ks),KEY0(k));
|
||||
log("db: m_numPages = %"INT32"",m_numPages);
|
||||
exit(0);
|
||||
//char *xx=NULL;*xx=0;
|
||||
// was k too small?
|
||||
//if ( i + 1 < m_numPages && lastKey <= getKey(i+1) ) {
|
||||
|
Reference in New Issue
Block a user