diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-03-22 14:04:01 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-03-22 14:04:01 -0400 |
commit | 8d0df8f3ca8bce9e60396a7a6e2aa01707e1140d (patch) | |
tree | 2fc25cca6c1e9bfaa6cb83b270a0ec3bdff7f2ce /src/mongo/transport | |
parent | 4946280e123f0add746c9df43978a1491ef11cae (diff) | |
download | mongo-8d0df8f3ca8bce9e60396a7a6e2aa01707e1140d.tar.gz |
SERVER-34041 Fix `rlim_t` warning in FreeBSD.
FreeBSD's `struct rlimit` uses a signed type for `rlim_t`. Fixing
this assumption in the code eliminates a warning on that platform.
Diffstat (limited to 'src/mongo/transport')
-rw-r--r-- | src/mongo/transport/service_entry_point_utils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/transport/service_entry_point_utils.cpp b/src/mongo/transport/service_entry_point_utils.cpp index 0d14fa1b4ed..440132ada50 100644 --- a/src/mongo/transport/service_entry_point_utils.cpp +++ b/src/mongo/transport/service_entry_point_utils.cpp @@ -68,8 +68,7 @@ Status launchServiceWorkerThread(stdx::function<void()> task) { pthread_attr_init(&attrs); pthread_attr_setdetachstate(&attrs, PTHREAD_CREATE_DETACHED); - static const size_t kStackSize = - 1024 * 1024; // if we change this we need to update the warning + static const rlim_t kStackSize = 1024 * 1024; // if we change this we need to update the warning struct rlimit limits; invariant(getrlimit(RLIMIT_STACK, &limits) == 0); |