[PATCH] s4: initial code for the topology algorithm

Matthias Dieter Wallnöfer mdw at samba.org
Mon Mar 8 04:25:10 MST 2010


I looked at the patch.

One small comments: it's very nice that you use "uint32_t" counters and 
not the "signed" pedants where there isn't need to.
But rember: when counting objects from the LDB api (not DSDB, RPC 
api...) (with the "num_*" variables) use "unsigned" counters (not 
"uint32_t", not "uint64_t") since this is what the specification 
prescribes. The "num_*" are of this type and so also the counters should 
be. Keep in mind: sizeof("unsigned") >= sizeof("uint32_t"), on most 
platforms equal but "unsigned" could be greater.

Greets,
Matthias

Crístian Viana wrote:
> Hi,
>
> I think you should leave the inter-site algorithm alone now, and start
>    
>> working on the intra-site algorithm.
>>
>>      
> When you sent this e-mail I was nearly at the end of that algorithm, so I
> decided to finish it. I took a couple of days reviewing the code and testing
> it, and only today I could send the patches. It isn't fully functional as
> there are some parts I don't know how to implement. Those parts have TODO
> comments explaining what should be done that I didn't understand.
>
> Cheers,
> Crístian.
>
>    



More information about the samba-technical mailing list