Dbc->get does not work while iterating over the database -
03-14-2006
, 01:41 AM
Hi all...
Berkeley 4.4.16 compiled with VC7.1, WinXP
I have encountered a problem while iterating over my database(size
about 765M, more than 760k records).
I am using cursor as the Using Cursors example in C++ Getting Started,
like this:
featureDb->cursor(NULL, &cursorp, 0);
while ((ret = cursorp->get(&key, &data, DB_PREV)) == 0)
{
...........
}
This only have iterated 9089 records and then get stop at cursorp->get,
and only 19567 records while replaced DB_PREV with DB_NEXT. It seems
that cursorp->get has falled into a dead loop.
can anyone tell me why? |