[asterisk-users] Usage of lock in CDR
Tilghman Lesher
tilghman at meg.abyt.es
Tue Mar 22 01:05:38 CDT 2011
On Tuesday 22 March 2011 00:56:05 Nikhil wrote:
> Hi all
> In asterisk source code we can see lots of places
> AST_CDR_FLAG_LOCKED flags is used.This is for CDR purpose. Does anyone
> what is exact usage of this lock in CDR.If I remove this flags where it
> will impact,any data overwrite will happen..?
Yes. The purpose of the lock is to force a record to become a snapshot at
the time the record was locked. If you remove that flag, then almost any
update to the CDR will overwrite the entire record with a new snapshot.
--
Tilghman
More information about the asterisk-users
mailing list