mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 12:17:35 +03:00
Merge branch 'diffbot' into diffbot-testing
This commit is contained in:
commit
b8d0e95035
7
Rdb.cpp
7
Rdb.cpp
@ -592,6 +592,13 @@ bool Rdb::deleteAllRecs ( collnum_t collnum ) {
|
||||
|
||||
CollectionRec *cr = g_collectiondb.getRec ( collnum );
|
||||
|
||||
// deleted from under us?
|
||||
if ( ! cr ) {
|
||||
log("rdb: deleteallrecs: cr is NULL");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
RdbBase *base = cr->m_bases[(unsigned char)m_rdbId];
|
||||
if ( ! base ) return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user