diff options
author | Volker Lendecke <vl@samba.org> | 2009-07-10 12:24:56 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-07-15 10:55:20 +0200 |
commit | 3edcd55bf140d09833284ba5a0f04f86b04ef7dc (patch) | |
tree | 4f608ee12dcd56f02143417bc816d318a16e12e4 /source3/torture | |
parent | d936d1bd84e130aaff1de64cb1ecbd1f936dd9c4 (diff) | |
download | samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.gz samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.tar.bz2 samba-3edcd55bf140d09833284ba5a0f04f86b04ef7dc.zip |
Remove gencache_init/shutdown
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've
been very lazy calling gencache_shutdown, so this seems not really required.
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 8cebc2adcc..e3c4084e0c 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -5800,11 +5800,6 @@ static bool run_local_gencache(int dummy) time_t tm; DATA_BLOB blob; - if (!gencache_init()) { - d_printf("%s: gencache_init() failed\n", __location__); - return False; - } - if (!gencache_set("foo", "bar", time(NULL) + 1000)) { d_printf("%s: gencache_set() failed\n", __location__); return False; @@ -5878,17 +5873,6 @@ static bool run_local_gencache(int dummy) return False; } - if (!gencache_shutdown()) { - d_printf("%s: gencache_shutdown() failed\n", __location__); - return False; - } - - if (gencache_shutdown()) { - d_printf("%s: second gencache_shutdown() succeeded\n", - __location__); - return False; - } - return True; } |