head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.09.22.16.47.10; author abs; state Exp; branches; next ; commitid s8oGxWmvLnsKBDWG; desc @@ 1.1 log @Import mongodb-5.0.34 MongoDB 5.0 was released July 13, 2021, and the latest update (5.0.34) was released June 11, 2026 The main consumer of this version of mongodb in pkgsrc is net/unifi, and this will allow users to upgrade theit mongodb4 install (mongodb only allows version+1 upgrades, so 4.4 -> 5.0 then 5.0 -> 6.0 etc @ text @$NetBSD$ Add getCurrentNativeThreadId() implementation for NetBSD --- src/mongo/platform/process_id.cpp.orig 2026-01-10 17:09:51.945999791 +0000 +++ src/mongo/platform/process_id.cpp @@@@ -73,6 +73,10 @@@@ inline NativeProcessId getCurrentNativeT invariant(::pthread_threadid_np(NULL, &tid) == 0); return tid; } +#elif __NetBSD__ +inline NativeProcessId getCurrentNativeThreadId() { + return (intptr_t)pthread_self(); +} #else inline NativeProcessId getCurrentNativeThreadId() { return ::syscall(SYS_gettid); @