-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated entries in the profiler filesystem storage index #4719
Comments
@stof Second solution, i.e. https://github.com/gajdaw/symfony/commit/f3328e7be046b67c2b27136dbbac73840c58572c, passes tests. There are no duplicates. Implementation uses |
@gajdaw please open a pull request with your changes |
Commits ------- 74aa502 [HttpKernel] Fix #4719. Added condition which verify existence of profiler dump file. If file does not exists script inserts record to csv file. Discussion ---------- [HttpKernel] Ticket #4719. Each call of FileProfilerStorage->write method adds row to index file. Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes License of the code: MIT Each call of FileProfilerStorage->write method adds row to index file even if profiler dump is only updated. Event dispatcher in kernel call several times write method to save fresh profiler info. I add condition which checks if profiler file already exist then ignore add row to index file. --------------------------------------------------------------------------- by fabpot at 2012-07-08T08:04:33Z Can you squash your commits before I merge? Thanks. --------------------------------------------------------------------------- by yanoosh at 2012-07-08T10:08:48Z Ready to merge.
Commits ------- d1a142e Issue #4719 - (Redis and Memcached fixes and test) Discussion ---------- Issue #4719 - (Redis and Memcached fixes and test) Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/gajdaw/symfony.png?branch=issue_4719_appendix)](http://travis-ci.org/gajdaw/symfony) Fixes the following tickets: 4719 Todo: License of the code: MIT Documentation PR: - The same problem concerns `RedisProfilerStorage` and `BaseMemcacheProfilerStorage`. Solution is similar.
The CSV file storing the index for the FilesystemStorage of the profiler contains duplicates for each request. Each request appears 3 times in the index. This breaks the search as limiting to 10 results only gives me 4 results.
The text was updated successfully, but these errors were encountered: