Author Topic: v0.95.8 Doesn't Update Database/Profile.dat Timestamp  (Read 3039 times)

0 Members and 1 Guest are viewing this topic.

Offline tjh

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
 
The following users thanked this post: ghazan

Offline ghazan

Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
« Reply #1 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
 

Offline tjh

Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
« Reply #2 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
 

Offline ghazan

Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
« Reply #3 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();
}
 

Offline tjh

Re: v0.95.8 Doesn't Update Database/Profile.dat Timestamp
« Reply #4 on: 28 01 2019, 01:54:01 »
I just wanted to followup and say this works great now - thanks :)