mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
Fix commit 3b75814945
where sometimes collection is not saved
This commit is contained in:
@ -324,6 +324,8 @@ bool Collectiondb::addNewColl ( const char *coll,
|
||||
// point to this, so Rdb and RdbBase can reference it
|
||||
coll = cr->m_coll;
|
||||
|
||||
cr->setNeedsSave();
|
||||
|
||||
//
|
||||
// BEGIN NEW CODE
|
||||
//
|
||||
@ -488,6 +490,8 @@ bool Collectiondb::deleteRec2 ( collnum_t collnum ) {
|
||||
log(LOG_INFO,"db: deleting coll \"%s\" (%" PRId32")",coll,
|
||||
(int32_t)cr->m_collnum);
|
||||
|
||||
cr->setNeedsSave();
|
||||
|
||||
// CAUTION: tree might be in the middle of saving
|
||||
// we deal with this in Process.cpp now
|
||||
|
||||
|
Reference in New Issue
Block a user