Review Request 125497: KSycoca: store mtime for every source dir, to detect changes.
David Faure
faure at kde.org
Mon Oct 5 07:24:34 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125497/
-----------------------------------------------------------
(Updated Oct. 5, 2015, 7:24 a.m.)
Status
------
This change has been marked as submitted.
Review request for KDE Frameworks, Albert Astals Cid and Bhushan Shah.
Changes
-------
Submitted with commit 0e4d7247e27f82a9b79b19dbceb35b603baceb76 by David Faure to branch master.
Bugs: 353036
https://bugs.kde.org/show_bug.cgi?id=353036
Repository: kservice
Description
-------
The old solution was to compare the mtime of the source dirs with
a stored timestamp of "just before listing them". However this assumes
that time always moves forward, and some people have a phone that also acts
as a time machine (a limited one, with a single possible "destination", 01/01/1970).
Well, this new solution should also avoid problems with DST making time
go back 1h once a year; or problems when changing timezones (although we
could also just use UTC everywhere for these issues).
BUG: 353036
REVIEW: 125497
Diffs
-----
autotests/ksycocatest.cpp c2fe0db2b07d41ff3f66485093b76de6981a18ba
src/sycoca/kbuildsycoca.cpp 924c55724ffeabace492b37ee3f1658a1efcee39
src/sycoca/kbuildsycoca_p.h b3a86ecc4f611219132af2ec10a8f052e27c2d4b
src/sycoca/ksycoca.cpp cc721eaf4ae42d65dccaf71eeb21211696be130c
src/sycoca/ksycoca_p.h 314aaa91d9a07896cb3cef13bdb849d5c7e359ea
Diff: https://git.reviewboard.kde.org/r/125497/diff/
Testing
-------
unit test (failed before patch, works with it).
Thanks,
David Faure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151005/5f091a4e/attachment.html>
More information about the Kde-frameworks-devel
mailing list