Discussion:
[leveldb] Key change in leveldb
suresh chowta
2016-04-19 21:24:21 UTC
Permalink
We are using leveldb for indexing data blocks for disks and use one leveldb
instance per disk.
The keys for the index are *<inode+page_offset+fingerprint> *
The fingerprint was existing in the key for some historical reasons (not
known to me)
We are planning to get rid of this fingerprint suffix from the key (as we
concluded that we can maintain uniqueness of the key with just inode and
page_offset).

The issue is the upgrade from older version to newer version, where we need
to maintain two indexes for brief time till the first index becomes free.
The question is, is there a way to use the same old index and change the
key size for the new key insertions and to use only *<inode+page_size>* for
old keys ignoring the suffix part during lookups ?

Please let me know if my question is not very clear.

-Suresh
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...