From 4dcb233e08b9b3e255973bd80e98b6f6c8f83af2 Mon Sep 17 00:00:00 2001 From: malavan Date: Wed, 1 Dec 2021 20:50:18 +0000 Subject: [PATCH] fix potential compilation fail on gettid in replication.cpp Former-commit-id: edb6b240a7785b707652a168d90f46d8744dd4c7 --- src/replication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/replication.cpp b/src/replication.cpp index 13b2eafb9..d64bec35f 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -55,6 +55,7 @@ void replicationSendAck(redisMaster *mi); void putSlaveOnline(client *replica); int cancelReplicationHandshake(redisMaster *mi, int reconnect); static void propagateMasterStaleKeys(); +extern "C" pid_t gettid(); /* We take a global flag to remember if this instance generated an RDB * because of replication, so that we can remove the RDB file in case