]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent delayed astdb syncs.
authorMark Michelson <mmichelson@digium.com>
Fri, 14 Mar 2014 16:11:42 +0000 (16:11 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 14 Mar 2014 16:11:42 +0000 (16:11 +0000)
commit10e8ad8604ea1a162feee53fabd6ea40c90f08bc
treec63deb4b9b330333fc7b501fb53e4a5e4d43981a
parent14160f9a4d2c83e27d5266bb9b98fd8ff86ed672
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)
........

Merged revisions 410556 from http://svn.asterisk.org/svn/asterisk/branches/11

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