Re: Write buffering updates to temporary files?

2016-12-28 Thread David Smiley
Sure! > On Dec 28, 2016, at 9:59 AM, Đạt Cao Mạnh wrote: > > Do you think we should raise an issue for this problem? > > On Wed, Dec 28, 2016 at 12:58 PM David Smiley > wrote: > I agree that using a single

Re: Write buffering updates to temporary files?

2016-12-28 Thread Đạt Cao Mạnh
Do you think we should raise an issue for this problem? On Wed, Dec 28, 2016 at 12:58 PM David Smiley wrote: > I agree that using a single tlog for 2 purposes is confusing. Perhaps a > separate tlog purely for buffering purposes during recovery/peer-sync etc. > be

Re: Write buffering updates to temporary files?

2016-12-27 Thread David Smiley
I agree that using a single tlog for 2 purposes is confusing. Perhaps a separate tlog purely for buffering purposes during recovery/peer-sync etc. be clearer? You said "another separate file" but I imagine we can use our tlog code but another instance pointed to another directory. FWIW I

Write buffering updates to temporary files?

2016-12-27 Thread Đạt Cao Mạnh
Currently, we write buffering logs to current tlog and not apply that updates to index. Then we rely on replay log to apply that updates to index. But at the same time there are some updates also write to current tlog and applied to the index. For example, during peersync, if new updates come to