s3-printing: remove pcap_cache_loaded asserts
commit1a4449eb7cccd581fb70ca1362d329c45a53b9d0
authorDavid Disseldorp <ddiss@suse.de>
Mon, 17 Jan 2011 15:09:32 +0000 (17 16:09 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Jun 2011 10:58:15 +0000 (14 12:58 +0200)
tree7dc4fa540b311ef32ba7b13b3b2c8783fe0968ea
parent8ff0c807ec2d4f15d0fb19e715d9ae8f306b2cac
s3-printing: remove pcap_cache_loaded asserts

pcap_cache_loaded() assertions were added to the (re)load_printers()
functions, to ensure the caller had called pcap_cache_reload() prior to
reloading printer shares.

The problem is, pcap_cache_loaded() returns false if the the pcap_cache
contains no printer entries. i.e. pcap_cache_reload() has run but not
detected any printers.

Remove these assertions, correct call ordering is already enforced.

Signed-off-by: Günther Deschner <gd@samba.org>
The last 3 patches address bug #7836 (A newly added printer isn't visbile to
clients).
(cherry picked from commit a88126d6e8577a9e0b6196acdee70633d0e06259)
source3/printing/load.c
source3/smbd/server.c