File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -37,46 +37,36 @@ mongoc_sasl_mutex_alloc (void)
37
37
{
38
38
mongoc_mutex_t * mutex ;
39
39
40
- ENTRY ;
41
-
42
40
mutex = bson_malloc0 (sizeof (mongoc_mutex_t ));
43
41
mongoc_mutex_init (mutex );
44
42
45
- RETURN (( void * ) mutex ) ;
43
+ return ( void * ) mutex ;
46
44
}
47
45
48
46
49
47
static int
50
48
mongoc_sasl_mutex_lock (void * mutex )
51
49
{
52
- ENTRY ;
53
-
54
50
mongoc_mutex_lock ((mongoc_mutex_t * ) mutex );
55
51
56
- RETURN ( SASL_OK ) ;
52
+ return SASL_OK ;
57
53
}
58
54
59
55
60
56
static int
61
57
mongoc_sasl_mutex_unlock (void * mutex )
62
58
{
63
- ENTRY ;
64
-
65
59
mongoc_mutex_unlock ((mongoc_mutex_t * ) mutex );
66
60
67
- RETURN ( SASL_OK ) ;
61
+ return SASL_OK ;
68
62
}
69
63
70
64
71
65
static void
72
66
mongoc_sasl_mutex_free (void * mutex )
73
67
{
74
- ENTRY ;
75
-
76
68
mongoc_mutex_destroy ((mongoc_mutex_t * ) mutex );
77
69
bson_free (mutex );
78
-
79
- EXIT ;
80
70
}
81
71
82
72
#endif //MONGOC_ENABLE_SASL
@@ -90,6 +80,8 @@ static MONGOC_ONCE_FUN( _mongoc_do_init)
90
80
#endif
91
81
92
82
#ifdef MONGOC_ENABLE_SASL
83
+ /* The following functions should not use tracing, as they may be invoked
84
+ * before mongoc_log_set_handler() can complete. */
93
85
sasl_set_mutex (mongoc_sasl_mutex_alloc ,
94
86
mongoc_sasl_mutex_lock ,
95
87
mongoc_sasl_mutex_unlock ,
You can’t perform that action at this time.
0 commit comments