]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
profile: use proper type to cleanup async
authorShachar Sharon <ssharon@redhat.com>
Sun, 5 Jul 2026 08:31:45 +0000 (11:31 +0300)
committerAnoop C S <anoopcs@samba.org>
Thu, 9 Jul 2026 05:57:37 +0000 (05:57 +0000)
Use proper type (struct smbprofile_stats_time_async) to reset-clean
upon ASYNC_END macro.

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
source3/include/smbprofile.h

index 40275262a7f1ff8c7bb281be49f5671741a12d45..f6bdd4393b4a631b90f09b911d869e0c3f8d2fb0 100644 (file)
@@ -375,7 +375,7 @@ struct profile_stats {
 #define SMBPROFILE_TIME_ASYNC_END(_async) do { \
        if ((_async).start != 0) { \
                (_async).stats->time += profile_timestamp() - (_async).start; \
-               (_async) = (struct smbprofile_stats_basic_async) {}; \
+               (_async) = (struct smbprofile_stats_time_async) {}; \
                smbprofile_dump_schedule(); \
        } \
 } while(0)