Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Bug reports => Topic started by: tjh on 08 06 2018, 01:13:57

Title: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
Post by: tjh on 08 06 2018, 01:13:57
Hi,

I use SyncThing (https://syncthing.net) to keep my Miranda Profile in sync across a number of PCs.  Makes life very easy.
But since upgrading to v0.95.8, I've had major problems with SyncThing causing lots of conflicting files.

Today, I've realised why.  The timestamp on my profile file never updates.  I've been running Miranda all morning and sent a bunch of messages, but the timestamp on this file hasn't changed.
What's even more annoying is that it isn't even updated when I quit Miranda-NG.

It seems I have to either

1) Compact the Database
or
2) Quit, then start up again, Miranda-Ng.

For it to update the timestamp on the file.  With option 2, it updates the timestamp even before I enter my password.

Could a setting be added so that it updates every time a message is received?  I don't even understand how the database can be updated without the timestamp on the file being updated.

Then hopefully my syncing over systems can go back to being normal again.

Thanks!

Tim
Title: Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
Post by: ghazan on 09 06 2018, 10:10:46
thanks for pointing us to, I'll try to do something.
funny, but now I manually set new date/time each time Miranda starts & exits
Title: Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
Post by: tjh on 10 06 2018, 21:13:09
It doesn't seem to set it for me on exit though, only on start?
Or is this something you've just released in the new build I see today?

Thanks,
Tim
Title: Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
Post by: ghazan on 13 06 2018, 18:15:19
It doesn't seem to set it for me on exit though, only on start?
No, it should modify timestamp on exit too:

CDbxMDBX::~CDbxMDBX()
{
   mdbx_env_close(m_env);

   if (!m_bReadOnly)
      TouchFile();
}
Title: Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
Post by: tjh on 28 01 2019, 01:54:01
I just wanted to followup and say this works great now - thanks :)