diff --git a/util/env_posix.cc b/util/env_posix.cc index b3c63c8e8..77fb0ba44 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -1435,7 +1435,7 @@ class PosixEnv : public Env { return gettid(tid); } - virtual uint64_t GetThreadID() const { + virtual uint64_t GetThreadID() const override { return gettid(pthread_self()); }