diff options
author | Volker Lendecke <vl@samba.org> | 2016-03-03 17:39:09 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-03-07 17:58:16 +0100 |
commit | dbcdacc58df77c87f7e6f919208cfd141e37b2d4 (patch) | |
tree | 03a23625e55948a874ba9b34a51f8ef4bef630ba /source3 | |
parent | 639b3ca48a8dc4e853aa414ba175768413cb3aa3 (diff) | |
download | samba-dbcdacc58df77c87f7e6f919208cfd141e37b2d4.tar.gz |
lib: Avoid a gencache_parse when setting a delete marker
We know that we want to put something into _notrans, no point in
doing another round trip into gencache.tdb.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/gencache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index e506b3be5f1..84d273e4f24 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -296,7 +296,7 @@ bool gencache_set_data_blob(const char *keystr, const DATA_BLOB *blob, return false; } - if (gencache_have_val(keystr, blob, timeout)) { + if ((timeout != 0) && gencache_have_val(keystr, blob, timeout)) { DEBUG(10, ("Did not store value for %s, we already got it\n", keystr)); return true; |