mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
46c1f7bdee
The max_links calculation didn't work particularly well if max_links was set to a value lower than max_objects. As soon as repl_chunk->object_count exceeded repl_chunk->max_links, the chunk would be deemed full, even if there was only one link to send (or even worse, no links to send). For example, if max_objects=100 and max_links=10, then it would send back chunks of 10 objects (or 9 objects and 1 link). I believe the historic reason this logic exists is to avoid overfilling the response message. It's hard to tell what the appropriate limit would be because the total message size would depend on how many attributes each object has. I couldn't think of logic that would be suitable for all cases. I toyed with the idea of working out a percentage of how full the message is. However, adjusting the max_links doesn't really make sense when the settings are small enough, e.g. max_objects=100 and max_links=100 is never going to overfill the message, so there's no reason to alter the values. In the end I went with: - If the user is using non-default values, just use those. - In the default value case, just use the historic calculation Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> BUG: https://bugzilla.samba.org/show_bug.cgi?id=12972 Reviewed-by: Garming Sam <garming@catalyst.net.nz> |
||
---|---|---|
.. | ||
backupkey | ||
browser | ||
common | ||
dnsserver | ||
drsuapi | ||
echo | ||
epmapper | ||
eventlog | ||
lsa | ||
netlogon | ||
remote | ||
samr | ||
srvsvc | ||
unixinfo | ||
winreg | ||
wkssvc | ||
dcerpc_server.c | ||
dcerpc_server.h | ||
dcerpc_server.pc.in | ||
dcesrv_auth.c | ||
dcesrv_mgmt.c | ||
handles.c | ||
service_rpc.c | ||
wscript_build |