summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2019-04-01 16:23:35 -0700
committerKarolin Seeger <kseeger@samba.org>2019-04-12 07:57:11 +0000
commita54038bf5f87189ebc46ae3da1335205efd03669 (patch)
treef61c8a79756c77cfb6249ff3d62740ba3394b9a1 /.travis.yml
parent116c874f1ff77d27a7ffb10c44a3cba8bad891a0 (diff)
downloadsamba-a54038bf5f87189ebc46ae3da1335205efd03669.tar.gz
memcache: Properly track the size of talloc objects
With memcache_add_talloc, the talloc object becomes part of the pool and the memcache_element stores a pointer to the talloc object. The size of the the talloc object was not used when tracking the used space, allowing the cache to grow larger than defined in the memcache_init call. Fix this by adding the size of the talloc object to the used space. Also record the initial size of the talloc object for proper adjustment of the used space in the cache later. This is in case the size of the talloc object is modified while being owned by the cache (e.g. allocating talloc child objects). This should never happen, but better be safe than ending up with a broken cache usage counter. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13865 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit a04ca6f3438595ba7e1a110877f53d1cac0f0402)
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions