[CDRIVER-2478] --disable-shm-counters should disable the build of mongoc-stat Created: 29/Jan/18  Updated: 28/Oct/23  Resolved: 31/Jan/18

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.9.2
Fix Version/s: 1.10.0

Type: Bug Priority: Major - P3
Reporter: Gabriel Russell (Inactive) Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes CDRIVER-2667 mongoc-stat is not supported on your ... Closed

 Description   

The use of shm_open in mongoc-counters.c is disabled without MONGOC_ENABLE_SHM_COUNTERS, but the shm_open in mongoc-stat.c is always compiled, and will fail to link if shm_open is not available.



 Comments   
Comment by Githook User [ 31/Jan/18 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: CDRIVER-2478 mongoc-stat compile err w/o counters

If the driver is built with --disable-shm-counters, mongoc-stat should
print a runtime error, rather than fail to build.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/62d2dbf789ead6344e930ff1b8eb229a87b23d1d

Comment by A. Jesse Jiryu Davis [ 31/Jan/18 ]

Hi, what's motivating this ticket / why is it urgent please?

Comment by Gabriel Russell (Inactive) [ 30/Jan/18 ]

Getting a fix for this backported to 1.9 would be nice to have.

Generated at Wed Feb 07 21:15:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.