SeekToFirst
This commit is contained in:
@@ -590,6 +590,7 @@ int64_t komodo_snapshot()
|
|||||||
int64_t total = -1;
|
int64_t total = -1;
|
||||||
if ( pblocktree != 0 )
|
if ( pblocktree != 0 )
|
||||||
total = pblocktree->Snapshot();
|
total = pblocktree->Snapshot();
|
||||||
|
else fprintf(stderr,"null pblocktree start with -addressindex=true\n");
|
||||||
return(total);
|
return(total);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -402,6 +402,8 @@ int64_t CBlockTreeDB::Snapshot()
|
|||||||
{
|
{
|
||||||
char chType; int64_t total = -1; std::string address;
|
char chType; int64_t total = -1; std::string address;
|
||||||
boost::scoped_ptr<leveldb::Iterator> pcursor(NewIterator());
|
boost::scoped_ptr<leveldb::Iterator> pcursor(NewIterator());
|
||||||
|
pcursor->SeekToFirst();
|
||||||
|
fprintf(stderr,"pcursor iterate\n");
|
||||||
while (pcursor->Valid())
|
while (pcursor->Valid())
|
||||||
{
|
{
|
||||||
boost::this_thread::interruption_point();
|
boost::this_thread::interruption_point();
|
||||||
|
|||||||
Reference in New Issue
Block a user