]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use file_id_str_buf() in share_mode_memcache_store()
authorVolker Lendecke <vl@samba.org>
Sat, 9 Nov 2019 20:05:41 +0000 (21:05 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Nov 2019 20:56:35 +0000 (20:56 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c

index 92289404468ac3031cc0c09b0c9d51076d90d36a..e6b7b6289ef55eec2ea7cbefb1a1f6814749cf1f 100644 (file)
@@ -177,11 +177,12 @@ static DATA_BLOB memcache_key(const struct file_id *id)
 static void share_mode_memcache_store(struct share_mode_data *d)
 {
        const DATA_BLOB key = memcache_key(&d->id);
+       struct file_id_buf idbuf;
 
        DBG_DEBUG("stored entry for file %s seq %"PRIx64" key %s\n",
                  d->base_name,
                  d->sequence_number,
-                 file_id_string(talloc_tos(), &d->id));
+                 file_id_str_buf(d->id, &idbuf));
 
        /* Ensure everything stored in the cache is pristine. */
        d->modified = false;