Skip to content

Commit 60c6e13

Browse files
authored
Fix build of ClickHouse client with ASAN (#14559)
1 parent 55dda4a commit 60c6e13

File tree

1 file changed

+2
-5
lines changed
  • ydb/library/yql/udfs/common/clickhouse/client/src/Core

1 file changed

+2
-5
lines changed

ydb/library/yql/udfs/common/clickhouse/client/src/Core/Defines.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include <common/defines.h>
44

5+
#include <sanitizer/asan_interface.h>
6+
57
#define DBMS_DEFAULT_HOST "localhost"
68
#define DBMS_DEFAULT_PORT 9000
79
#define DBMS_DEFAULT_SECURE_PORT 9440
@@ -116,11 +118,6 @@
116118
#define DBMS_DISTRIBUTED_SIGNATURE_HEADER 0xCAFEDACEull
117119
#define DBMS_DISTRIBUTED_SIGNATURE_HEADER_OLD_FORMAT 0xCAFECABEull
118120

119-
#if !__has_include(<sanitizer/asan_interface.h>) || !defined(ADDRESS_SANITIZER)
120-
# define ASAN_UNPOISON_MEMORY_REGION(a, b)
121-
# define ASAN_POISON_MEMORY_REGION(a, b)
122-
#endif
123-
124121
/// Actually, there may be multiple acquisitions of different locks for a given table within one query.
125122
/// Check with IStorage class for the list of possible locks
126123
#define DBMS_DEFAULT_LOCK_ACQUIRE_TIMEOUT_SEC 120

0 commit comments

Comments
 (0)