Homec4science

BibDocFile: fix check-md5 with bibdocfsinfo cache

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Jan 11 2013, 15:55.

Description

BibDocFile: fix check-md5 with bibdocfsinfo cache

  • If the new bibdocfsinfo_cache functionality is enabled by setting CFG_BIBDOCFILE_ENABLE_BIBDOCFSINFO_CACHE = 1 in invenio(-local).conf, the md5s property of BibDoc objects was not correctly initialized and calling bibdocfile --check-md5 would have failed with an unhanded exception. This is fixed here by lazy initialization of the BibDoc.md5s property. (closes #1249)

Reported-by: Thorsten Schwander <thorsten.schwander@gmail.com>
Tested-by: Tibor Simko <tibor.simko@cern.ch>

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Mar 5 2013, 21:06
Parents
R3600:539a9ee5215d: BibCatalog: removal of print statement
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:7317b2f6cbf6: BibDocFile: fix check-md5 with bibdocfsinfo cache (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Mar 5 2013, 21:06