Skip to content

Commit a8f9e4a

Browse files
authored
build: remove FLB_SYSTEM_STRPTIME option. (#2433)
Lionel Cons reports that Fluent Bit sometimes adds odd "drift" to timestamps e.g. parsing "10000" with "%s" results in 13600.0 rather than 10000.0. This occurs because "%s" is parsed differently depending on the implementation of strptime(). Some use localtime() internally, and others use gmtime(). This causes the parsed result to vary by the amount of each system's time offset. For this reason, we started to always use our own implementation of strptime(3). Remove the build option as being deprecated. Signed-off-by: Fujimoto Seiji <[email protected]>
1 parent f142d93 commit a8f9e4a

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ option(FLB_LUAJIT "Enable Lua Scripting support" Yes)
8686
option(FLB_RECORD_ACCESSOR "Enable record accessor" Yes)
8787
option(FLB_SIGNV4 "Enable AWS Signv4 support" Yes)
8888
option(FLB_AWS "Enable AWS support" Yes)
89-
option(FLB_SYSTEM_STRPTIME "Use strptime in system libc" Yes)
9089
option(FLB_STATIC_CONF "Build binary using static configuration")
9190
option(FLB_STREAM_PROCESSOR "Enable Stream Processor" Yes)
9291
option(FLB_CORO_STACK_SIZE "Set coroutine stack size")
@@ -564,11 +563,6 @@ else()
564563
set(AUTOCONF_HOST_OPT "--host=${GNU_HOST}")
565564
endif()
566565

567-
# strptime(2) support
568-
if (FLB_SYSTEM_STRPTIME)
569-
FLB_DEFINITION(FLB_HAVE_SYSTEM_STRPTIME)
570-
endif()
571-
572566
# Memory Allocator
573567
# ================
574568
if(FLB_JEMALLOC AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")

cmake/windows-setup.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ set(FLB_EXAMPLES Yes)
1010
set(FLB_PARSER Yes)
1111
set(FLB_TLS Yes)
1212

13-
# Windows does not support strptime(3)
14-
set(FLB_SYSTEM_STRPTIME No)
15-
1613
# INPUT plugins
1714
# =============
1815
set(FLB_IN_CPU No)

0 commit comments

Comments
 (0)