@@ -1126,7 +1126,7 @@ tlog_rec(struct tlog_errs **perrs, uid_t euid, gid_t egid,
11261126 clockid_t clock_id ;
11271127 unsigned int session_id ;
11281128 bool lock_acquired = false;
1129- bool no_locking = false ;
1129+ bool enable_locking = true ;
11301130 struct json_object * obj ;
11311131 int64_t num ;
11321132 unsigned int latency ;
@@ -1145,9 +1145,9 @@ tlog_rec(struct tlog_errs **perrs, uid_t euid, gid_t egid,
11451145 }
11461146 }
11471147
1148- /* Check for the no-locking flag */
1149- if (json_object_object_get_ex (conf , "no-locking " , & obj )) {
1150- no_locking = json_object_get_boolean (obj );
1148+ /* Check for the enable_locking flag */
1149+ if (json_object_object_get_ex (conf , "enable_locking " , & obj )) {
1150+ enable_locking = json_object_get_boolean (obj );
11511151 }
11521152
11531153 /* Check for the version flag */
@@ -1204,7 +1204,7 @@ tlog_rec(struct tlog_errs **perrs, uid_t euid, gid_t egid,
12041204 TLOG_ERRS_RAISECS (grc , "Failed retrieving session ID" );
12051205 }
12061206
1207- if (opts & TLOG_REC_OPT_LOCK_SESS && ! no_locking ) {
1207+ if (opts & TLOG_REC_OPT_LOCK_SESS && enable_locking ) {
12081208 /* Attempt to lock the session */
12091209 grc = tlog_session_lock (perrs , session_id , euid , egid , & lock_acquired );
12101210 if (grc != TLOG_RC_OK ) {
0 commit comments