https://bugs.openldap.org/show_bug.cgi?id=9291
--- Comment #5 from Markus <[email protected]> --- We don't use NOSYNC or NOMETASYNC. The OS is Android, and it's likely that some device manufacture did something wrong in a specific model. However, I believe the specifics of how this happened are secondary as it will happen again in a different situation. > I think your proposed change is too specific, since it could be any page, > not just the meta pages, that references beyond the end of the file. Yes. There's a trade-off. Checking the roots can be done simply and in constant time. I'm aware that this is not a thorough check, which would require a tree traversal. I think in scenarios that are mostly appending new data, the chance would be quite good to catch a broken fsync. Of course it would not catch cases were pages are reused. PS.: I added P_INVALID handling meanwhile. -- You are receiving this mail because: You are on the CC list for the issue.
