diff options
author | Dylan Stephano-Shachter <dshachter@nasuni.com> | 2019-01-14 13:42:03 -0500 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-01-16 02:01:55 +0100 |
commit | 0b996afec2ba4a4ba4e492123ca03f3b877a9db0 (patch) | |
tree | ee99bcf609519da4ab250b81a1cc1a0c07569de1 /source3/profile | |
parent | dd231a16a338cfe63d12cadf0fc3e2ebe7cac828 (diff) | |
download | samba-0b996afec2ba4a4ba4e492123ca03f3b877a9db0.tar.gz |
profiling: stop smbprofile from growing unnecessarily
Signed-off-by: Dylan Stephano-Shachter <dshachter@nasuni.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jan 16 02:01:55 CET 2019 on sn-devel-144
Diffstat (limited to 'source3/profile')
-rw-r--r-- | source3/profile/profile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c index 5deef81b6df..5e7b69d25d6 100644 --- a/source3/profile/profile.c +++ b/source3/profile/profile.c @@ -271,6 +271,11 @@ void smbprofile_dump(void) TALLOC_FREE(smbprofile_state.internal.te); + if (! (smbprofile_state.config.do_count || + smbprofile_state.config.do_times)) { + return; + } + if (smbprofile_state.internal.db == NULL) { return; } |