Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 6356 - On LMDB, after an update the impact VLV index, the vlv r…
…ecno cache is not systematically cleared Bug description: The VLV manages/uses an index database. In LMDB in addition to the index there is one 'recno cache' database per VLV index. This recno cache, related to a given VLV index, is cleared when an update impacts the VLV index. The recno cache is not systematically cleared upon update of the VLV index. The way to clear the cache is to delete the record with key "OK". When the 'recno cache' does not contain this key, the next lookup to the cache, clears all entries and rebuild the cache from the vlv index. The deletion is done with mdb_del with both KEY and DATA refering to the same mdb_val. This means it deletes the records matching if both KEY/DATA. It should not match the DATA as the "OK" record is just a flag and all entries with that key should be removed. Fix description: The fix consist to call mdb_del only with key fixes: 389ds#6356 Reviewed by:
- Loading branch information