]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent delayed astdb syncs.
authorMark Michelson <mmichelson@digium.com>
Fri, 14 Mar 2014 15:56:43 +0000 (15:56 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 14 Mar 2014 15:56:43 +0000 (15:56 +0000)
commit0edf68951995e847e7d09a8ab3a16097b16b5aa2
tree1955c433aad0b48dc970ec6adf17a4a25e6dede2
parent4a3c8065abdb03bac6fe36b981a3a9abaebc41c4
Prevent delayed astdb syncs.

The syncing thread sleeps for a second before waiting to be
told to attempt to sync again. If a signal were sent during this
sleeping period, we would end up having to wait until the next
sync signal occurred in order to sync up the astdb.

This code rearrangement also ensures that any pending transactions
will be synced prior to Asterisk shutting down.

Patches: db_sync.patch by John Hardin (License #6512)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@410556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/db.c