diff options
author | Volker Lendecke <vl@samba.org> | 2013-05-03 10:28:59 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-05-03 14:48:35 +0200 |
commit | 0a2910152aaafa1c7d484f8a0ade869d7962d4e3 (patch) | |
tree | f721b5ca1fe2882a9f8977dd0f2eafc7461b6b36 /source3/modules/vfs_shadow_copy2.c | |
parent | 1966e28d157da3ef561a6e760eb4736e917fdd81 (diff) | |
download | samba-0a2910152aaafa1c7d484f8a0ade869d7962d4e3.tar.gz samba-0a2910152aaafa1c7d484f8a0ade869d7962d4e3.tar.bz2 samba-0a2910152aaafa1c7d484f8a0ade869d7962d4e3.zip |
idmap: Store negative cache entries if the backend fails
This changes the behaviour for out-of-range queries: The tdb backend
(probably all backends) returns NT_STATUS_NONE_MAPPED and does not set the
map.status value to ID_UNMAPPED. This means that we did an early error
exit, not setting a negative cache value. This makes smbd ask winbind
over and over again for out-of-range gids, which can be a performance
problem in certain scenarios.
The new code makes us fall through to the code setting the negative
cache entry in all cases.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Fri May 3 14:48:35 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/modules/vfs_shadow_copy2.c')
0 files changed, 0 insertions, 0 deletions