<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 25: Duplication with multiple databases</title><link>https://sourceforge.net/p/keepasssync/bugs/25/</link><description>Recent changes to 25: Duplication with multiple databases</description><atom:link href="https://sourceforge.net/p/keepasssync/bugs/25/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 18 Sep 2013 14:02:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/keepasssync/bugs/25/feed.rss" rel="self" type="application/rss+xml"/><item><title>#25 Duplication with multiple databases</title><link>https://sourceforge.net/p/keepasssync/bugs/25/?limit=25#f1a4</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Clarification on this issue - it happens when database tab has been changed while sync is running in the background.&lt;/p&gt;
&lt;p&gt;The issue is in the thread_sync(), MergeIn() and MergeOut() which are executed in separate thread by Sync(true) in OnFileSaved. All functions are getting current database by calling to m_Host.Database, while it can change if user change the tab;  thus causing two database to merge in by MergeOut call which merging online database with a current database, that has been changed now.&lt;/p&gt;
&lt;p&gt;The proper approach &lt;br /&gt;
-to save m_host.Database value and use stored value in all these functions&lt;br /&gt;
-do not use async synchronization&lt;br /&gt;
-track database change event&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mr Vladimir</dc:creator><pubDate>Wed, 18 Sep 2013 14:02:41 -0000</pubDate><guid>https://sourceforge.net1edbba0f305ceff98bbfa4478ec57414e8ec8b50</guid></item><item><title/><link>https://sourceforge.net/p/keepasssync/bugs/25/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mitch Capper</dc:creator><pubDate>Sun, 07 Oct 2012 01:08:48 -0000</pubDate><guid>https://sourceforge.netd9391cb28a89cddab9aa896a8a72a100e1f9a100</guid></item></channel></rss>