[SSSD] [PATCH] DB: Update sss_domain_info with new updated data

Simo Sorce simo at redhat.com
Mon Aug 19 12:14:03 UTC 2013


On Mon, 2013-08-19 at 11:33 +0200, Sumit Bose wrote:
> On Sun, Aug 18, 2013 at 10:26:46PM +0200, Jakub Hrozek wrote:
> > There seems to be a logic bug in sysdb_master_domain_add_info(). We
> > first update the domain data with sysdb search results and then update
> > sysdb. I think it should be the other way around.
> 
> iirc the idea was to read the sysdb entry first to make sure we have the
> latest data from sysdb. Because of the asynchronous nature of the
> request it might be possible that another request already updated the
> sysdb entry. To avoid unneeded writes we try to compare the new data
> with the latest data we know. This is led by the assumption that
> reading from sysdb is a lot cheaper then writing to it.

How often does this operation happen ?
Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the sssd-devel mailing list