diff --git a/src/Storages/FileLog/DirectoryWatcherBase.cpp b/src/Storages/FileLog/DirectoryWatcherBase.cpp index 00c37fe9a75..4f2a775c265 100644 --- a/src/Storages/FileLog/DirectoryWatcherBase.cpp +++ b/src/Storages/FileLog/DirectoryWatcherBase.cpp @@ -65,9 +65,10 @@ void DirectoryWatcherBase::watchFunc() #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wreserved-identifier" FD_ZERO(&fds); - FD_SET(fd, &fds); #pragma clang diagnostic pop + FD_SET(fd, &fds); + struct timeval tv; tv.tv_sec = 0; tv.tv_usec = 200000;