Forum for English speaking Miranda NG users > Bug reports

v0.95.8 Doesn't Update Database/Profile.dat Timestamp

(1/1)

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

ghazan:
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

tjh:
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

ghazan:

--- Quote from: tjh on 10 06 2018, 21:13:09 ---It doesn't seem to set it for me on exit though, only on start?
--- End quote ---
No, it should modify timestamp on exit too:

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

   if (!m_bReadOnly)
      TouchFile();
}

tjh:
I just wanted to followup and say this works great now - thanks :)

Navigation

[0] Message Index

There was an error while thanking
Thanking...
Go to full version