summaryrefslogtreecommitdiff
path: root/src/mongo/transport
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2018-03-22 14:04:01 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2018-03-22 14:04:01 -0400
commit8d0df8f3ca8bce9e60396a7a6e2aa01707e1140d (patch)
tree2fc25cca6c1e9bfaa6cb83b270a0ec3bdff7f2ce /src/mongo/transport
parent4946280e123f0add746c9df43978a1491ef11cae (diff)
downloadmongo-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.cpp3
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);