diff options
author | Jeremy Allison <jra@samba.org> | 2015-04-02 11:19:22 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-04-17 20:01:25 +0200 |
commit | ec8ff499a47e0599a296f8b54c26a15e8a2389fa (patch) | |
tree | 5df83bca35cab54c6303b9f005b5d176186755cf /lib | |
parent | 60fbfc5563ada64ea145e93ceaee791165d78e64 (diff) | |
download | samba-ec8ff499a47e0599a296f8b54c26a15e8a2389fa.tar.gz |
lib: memcache. Add a new talloc cache type - SHARE_MODE_LOCK_CACHE.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/memcache.c | 1 | ||||
-rw-r--r-- | lib/util/memcache.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/memcache.c b/lib/util/memcache.c index 2f2e77c1234..9e9a20802e6 100644 --- a/lib/util/memcache.c +++ b/lib/util/memcache.c @@ -53,6 +53,7 @@ static bool memcache_is_talloc(enum memcache_number n) case GETPWNAM_CACHE: case PDB_GETPWSID_CACHE: case SINGLETON_CACHE_TALLOC: + case SHARE_MODE_LOCK_CACHE: result = true; break; default: diff --git a/lib/util/memcache.h b/lib/util/memcache.h index 97490b963ce..2602fb7eef2 100644 --- a/lib/util/memcache.h +++ b/lib/util/memcache.h @@ -40,7 +40,8 @@ enum memcache_number { PDB_GETPWSID_CACHE, /* talloc */ SINGLETON_CACHE_TALLOC, /* talloc */ SINGLETON_CACHE, - SMB1_SEARCH_OFFSET_MAP + SMB1_SEARCH_OFFSET_MAP, + SHARE_MODE_LOCK_CACHE /* talloc */ }; /* |