diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-13 10:35:04 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-01-13 10:35:04 -0700 |
commit | 79d9b6bb5aa5232df4197932859307359a6ae39a (patch) | |
tree | 425896032d7156508a1f245d7d8af100618bb163 /page.go | |
parent | Finish open coverage. (diff) | |
download | dedo-79d9b6bb5aa5232df4197932859307359a6ae39a.tar.gz dedo-79d9b6bb5aa5232df4197932859307359a6ae39a.tar.xz |
Begin Transaction.Cursor().
Diffstat (limited to 'page.go')
-rw-r--r-- | page.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -38,10 +38,12 @@ const maxWriteByteCount uint = 0x80000000 // TODO: #define MAX_WRITE 0x80000000U // #define MDB_COMMIT_PAGES IOV_MAX // #endif -// TODO: #define MDB_PS_MODIFY 1 -// TODO: #define MDB_PS_ROOTONLY 2 -// TODO: #define MDB_PS_FIRST 4 -// TODO: #define MDB_PS_LAST 8 +const ( + MDB_PS_MODIFY = 1 + MDB_PS_ROOTONLY = 2 + MDB_PS_FIRST = 4 + MDB_PS_LAST = 8 +) // TODO: #define MDB_SPLIT_REPLACE MDB_APPENDDUP /**< newkey is not new */ @@ -58,7 +60,7 @@ type page struct { ptr int } -type pageState struct { +type pagestate struct { head int /**< Reclaimed freeDB pages, or NULL before use */ last int /**< ID of last used record, or 0 if !mf_pghead */ } |