c-icap / c-icap-server

GNU Lesser General Public License v2.1
45 stars 32 forks source link

log function rwlock usage error in file_log_access.c #37

Open yanyongcheng opened 2 years ago

yanyongcheng commented 2 years ago

Hi, In file_log_access.c , the log funcion file_log_access,: ci_threadrwlockrdlock(&lf->rwlock); /obtain a read lock/ if (lf->access_log) fprintf(lf->access_log,"%s\n", logline); ci_thread_rwlock_unlock(&lf->rwlock); /obtain a read lock/

question is , When a file is written, a write lock should be obtained.but here is rdlock?