From 8f5b3f4850c8d854ada6b8acffa6a9692c17e5f5 Mon Sep 17 00:00:00 2001 From: zhihaop Date: Wed, 28 Sep 2022 05:16:31 +0000 Subject: [PATCH] fix: remove the volatile key word on variables --- src/client/inc/tscBatchWrite.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/inc/tscBatchWrite.h b/src/client/inc/tscBatchWrite.h index d1907cef3c..0e7d0136b0 100644 --- a/src/client/inc/tscBatchWrite.h +++ b/src/client/inc/tscBatchWrite.h @@ -56,7 +56,7 @@ typedef struct SAsyncBatchWriteDispatcher { int32_t bufferSize; // whether the dispatcher is shutdown. - volatile bool shutdown; + bool shutdown; SSqlObj* buffer[]; } SAsyncBatchWriteDispatcher; @@ -106,7 +106,7 @@ typedef struct SDispatcherTimeoutManager { int32_t timeoutMs; // whether the timeout manager is shutdown. - volatile bool shutdown; + bool shutdown; } SDispatcherTimeoutManager; /** -- GitLab