vmware-archive / go-pmem-transaction

Golang library for using persistent memory
Other
29 stars 5 forks source link

Expand undo & redo log based on the usage #2

Closed mohit10verma closed 5 years ago

mohit10verma commented 5 years ago

Updating undo/redo logging to expand based on usage, and reset to original size of 128 entries once done. Added tests for this. Previously, there were small and large transactions created using different APIs like transaction.NewUndoTx() and transaction.NewLargeUndoTx(). Determining size of transaction before-hand can be tricky. So, with this change, the logs can expand based on usage, and there is no longer the concept of explicit "large" transactions.

vmwclabot commented 5 years ago

@mohit10verma, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.