[Asterisk-code-review] sorcery: Fix sorcery wizard create so it creates in caches (asterisk[master])

Mark Michelson asteriskteam at digium.com
Fri Feb 26 16:52:39 CST 2016


Mark Michelson has posted comments on this change.

Change subject: sorcery:  Fix sorcery_wizard_create so it creates in caches
......................................................................


Patch Set 1: -Code-Review

I've removed my +1 from this review pending some sort of comment from Josh.

The code here was actually written this way purposely. The idea is that when sorcery creates an object, it doesn't automatically get added to the cache. Instead, when the object is retrieved from the non-caching backend for the first time, it is then added to the cache.

I'm not really sure what the advantage is to waiting until retrieval to add to the cache. My only guess is that it's a potential memory saver?

It's possible that in Ross's case, the contact was created in the non-caching backend, and then nothing ever attempted to retrieve that contact before it was deleted. The result is that the contact never was added to the cache so it couldn't get deleted.

-- 
To view, visit https://gerrit.asterisk.org/2313
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Id5596ce691685a79886e57b0865888458d6e7b46
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: George Joseph <george.joseph at fairview5.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-HasComments: No



More information about the asterisk-code-review mailing list