reverbrain / eblob

Eblob is an append-only low-level IO library, which saves data in blob files. Created as low-level backend for elliptics
GNU Lesser General Public License v3.0
104 stars 29 forks source link

Wrong `base_size` in data.stat #119

Closed shaitan closed 8 years ago

shaitan commented 9 years ago

Problem

base_size is a size of blob and its index, but it doesn't include size of unsorted index if blob has both sorted and unsorted index.

Solution

If sorted index isn't a hardlink to unsorted index, base_size should include size of sorted index.

Question

Why does it keep both sorted and unsorted index for unsorted blob and make sorted index as hardlink to unsorted one after sorting blob?

bioothod commented 8 years ago

Looks like this is not relevant anymore since we have one index now, isn't it?

shaitan commented 8 years ago

Yep, it is solved by #153