This content has been marked as final. Show 2 replies
After I write to the databse,I dump the content as the following:
4d7920666972737420737472696e6700 //writed by me
When posting snippets of code please use the code tags within square brackets (i.e. [tag] code goes here [tag] -- replacing tag with code).
This issue should have been posted on the Berkeley DB, not on the Berkeley DB HA (Replication) forum. There is nothing replication related from your description of the issue.
Looking over the extracts of code you posted, I cannot see the call to Db::cursor(). Did you omit it or is it missing from your code?
Review the Opening and Closing Cursors and Getting Records Using the Cursor documentation sections in the Getting Started with Berkeley DB guide.
Also, be aware of the aspects related to moving/copying databases between transactional environments, described in the Copying or moving databases documentation section in the Berkeley DB Programmer's Reference Guide.
Let me know if after reviewing the above information you are still seeing the problem.