-
Notifications
You must be signed in to change notification settings - Fork 581
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
FilterUtility: Replace some nested raw pointers by unique_ptr<>*
#9537
Conversation
7ec50d2
to
0efd86f
Compare
0efd86f
to
3434f48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Riddle
➜ icinga2 git:(replace-some-raw-pointer-with-intrusive-ptr) curl -ksSu root:123456 -H 'Accept: application/json' -X PUT -d '{"attrs":{"check_command":"passive","enable_active_checks":false}}' https://127.0.0.1:5665/v1/objects/hosts/e;echo
curl: (52) Empty reply from server
➜ icinga2 git:(replace-some-raw-pointer-with-intrusive-ptr) curl -ksSu root:123456 -H 'Accept: application/json' -X PUT -d '{"attrs":{"check_command":"passive","enable_active_checks":false}}' https://127.0.0.1:5665/v1/objects/hosts/e;echo
curl: (7) Failed to connect to 127.0.0.1 port 5665 after 5 ms: Connection refused
➜ icinga2 git:(replace-some-raw-pointer-with-intrusive-ptr)
3434f48
to
af0aa7d
Compare
af0aa7d
to
17cc0a0
Compare
Given that this PR is based on my suggestion from #9408 (comment), why did you chose |
We are constantly transferring the ownership of |
There's a way around this: put the |
But keep in mind:
– https://en.cppreference.com/w/cpp/container/unordered_map/insert |
17cc0a0
to
fa70b2f
Compare
fa70b2f
to
e0155c7
Compare
::Ptr*
unique_ptr<>*
e0155c7
to
cb1e2b8
Compare
cb1e2b8
to
c1f73fb
Compare
No description provided.