Hi all,
I use uint64_t as keys (binary). But rocksdb doesn't sort my key in order, so I created my own comparator for binary uint64. For the first time, I could create the db and write some key/value, but the 2nd time I re-open the DB, it always failed with an error saying:
Invalid argument: StoreComparator: does not match existing comparator leveldb.BytewiseComparator
I don't understand why, because I set my own comparator when I open/create/write to the DB. Why is the comparator still seems to be BytewiseComparator?
BTW, I don't know how to create a new DB with column family the first time. Do I need to open with "create_if_exist" to create a db without column family, then ListColumnFamilies to get all the families, then re-open it with a list of families?
Can someone help me please?
Thanks,
Kenji Chan