liuis / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

iterator return less keys than exist in db #254

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
iterator return only 6 key, but if I execute leveldb::RepairDB, i see in log 
that in my db about 30000 keys.

2014/10/27-14:44:22.582877 7fca865e5740 Table #275752: 2 entries OK
2014/10/27-14:44:22.593429 7fca865e5740 Table #275756: 12750 entries OK
2014/10/27-14:44:22.597550 7fca865e5740 Table #275760: 5751 entries OK
2014/10/27-14:44:22.597712 7fca865e5740 Table #247659: 2 entries OK
2014/10/27-14:44:22.606589 7fca865e5740 Table #275758: 12669 entries OK

iterator code:
for (it->SeekToLast(); it->Valid(); it->Prev()) {        
     g1++;
} 
# g1 = 6

Original issue reported on code.google.com by mixailg...@gmail.com on 27 Oct 2014 at 12:06

Attachments: