WIP debugging why leveldb iterator is broke

This commit is contained in:
Duke Leto
2018-07-14 23:00:09 +00:00
parent 8a7c025aae
commit cbce9f1f65
2 changed files with 27 additions and 5 deletions

View File

@@ -590,10 +590,18 @@ CBlockTreeDB *pblocktree = NULL;
int64_t komodo_snapshot()
{
fprintf(stderr,"komodo_snapshot\n");
int64_t total = -1;
if ( pblocktree != 0 )
total = pblocktree->Snapshot();
else fprintf(stderr,"null pblocktree start with -addressindex=true\n");
if (fAddressIndex) {
if ( pblocktree != 0 ) {
total = pblocktree->Snapshot();
} else {
fprintf(stderr,"null pblocktree start with -addressindex=true\n");
}
} else {
fprintf(stderr,"getsnapshot requires -addressindex=true\n");
}
fprintf(stderr,"total=%li\n", total);
return(total);
}