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

0 Members and 1 Guest are viewing this topic.

Offline tjhTopic starter

  • Newbie
  • *
  • Posts: 14
  • Country: nz
  • Karma: 0
  • I like Toasters
  • Jabber ID
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

  • Miranda NG founder
  • Administrator
  • *****
  • Posts: 549
  • Country: ru
  • Karma: 41
  • Jabber ID
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 tjhTopic starter

  • Newbie
  • *
  • Posts: 14
  • Country: nz
  • Karma: 0
  • I like Toasters
  • Jabber ID
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

  • Miranda NG founder
  • Administrator
  • *****
  • Posts: 549
  • Country: ru
  • Karma: 41
  • Jabber ID
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();
}