Author Topic: Compact database command truncates .dat file  (Read 139 times)

0 Members and 1 Guest are viewing this topic.

Offline rikiTopic starter

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 0
Compact database command truncates .dat file
« on: 16 10 2018, 17:33:05 »
Database -> Compact truncates the database to 1MB  :o
Miranda v0.95.10 build #20841, 32 bit.

Luckily, I had the profile backed up before trying  8)
 

Offline Vulpix

  • Beta Tester
  • *****
  • Posts: 595
  • Country: 00
  • Karma: 15
Re: Compact database command truncates .dat file
« Reply #1 on: 16 10 2018, 19:46:08 »
Yes this I encountered as well.

This happens if:

1) your db is corrupted (but this sucks because you can't easily tell since miranda looks like everything is ok
OR
2) you use 32 bit miranda and your DB is large (200-300+ MB). The compaction loads the whole profile and spits it out into a clean profile and I think the 32bit mdbx cannot map so much. The max is around 430something megabytes (not sure what the exact number is).

So unfortunately known but hard to predict when it'll happen. I've simply stopped running compaction altogether for now.

Moreover if your db is corrupted and you compact, even 64bit miranda will make it into a 1MB and bye bye data.