Prevent delayed astdb syncs.
authorMark Michelson <mmichelson@digium.com>
Fri, 14 Mar 2014 16:19:21 +0000 (16:19 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 14 Mar 2014 16:19:21 +0000 (16:19 +0000)
commitc1e9d2f177cb85048822037d4cdba9622501023a
treea70009d6103595e8a766059f3f9e925490713ca9
parent4c2b1c225bd9433247c8ef192bde4312d174a4b8
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
........

Merged revisions 410559 from http://svn.asterisk.org/svn/asterisk/branches/12

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