You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Advice:
If i release the snapshot ,i should get the newest infomation.
But only i add the "read_options.snapshot = NULL; " after db->ReleaseSnapshot(...) anually,can i get the right result---output "new".
I deep into the code in db_imp.cc and know it will judge "options.snapshot!=NULL" when call NewIterator(...) and Get(...) .
SO I think set the read_options.snapshot=NULL in DB::ReleaseSnapshot() is a good idea. Or you should modify the document clearly and add "read_options.snapshot = NULL;" to the example in the Snapshots part of http://leveldb.googlecode.com/svn/trunk/doc/index.html
The text was updated successfully, but these errors were encountered:
Original issue 170 created by wangtengchao on 2013-05-15T11:37:30.000Z:
What steps will reproduce the problem?
1.all code adn information showed in the additional information
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
leveldb 1.9 fedora17
Please provide any additional information below.
Advice:
If i release the snapshot ,i should get the newest infomation.
But only i add the
"read_options.snapshot = NULL; "
afterdb->ReleaseSnapshot(...)
anually,can i get the right result---output "new".I deep into the code in db_imp.cc and know it will judge "options.snapshot!=NULL" when call NewIterator(...) and Get(...) .
SO I think set the read_options.snapshot=NULL in DB::ReleaseSnapshot() is a good idea. Or you should modify the document clearly and add "read_options.snapshot = NULL;" to the example in the Snapshots part of http://leveldb.googlecode.com/svn/trunk/doc/index.html
The text was updated successfully, but these errors were encountered: