diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-28 09:00:19 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-28 09:00:19 -0600 |
commit | 4508a00891bbc50bdb5cbfe14df42af64596e891 (patch) | |
tree | f06644bf5194ea505186ad9f5f272b5207ca50b4 | |
parent | Merge pull request #174 from benbjohnson/remove-db-check (diff) | |
parent | Add circular dependency integrity check. (diff) | |
download | dedo-4508a00891bbc50bdb5cbfe14df42af64596e891.tar.gz dedo-4508a00891bbc50bdb5cbfe14df42af64596e891.tar.xz |
Merge pull request #175 from benbjohnson/check-loop
Add circular dependency integrity check.
-rw-r--r-- | node.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -192,6 +192,7 @@ func (n *node) write(p *page) { elem.pos = uint32(uintptr(unsafe.Pointer(&b[0])) - uintptr(unsafe.Pointer(elem))) elem.ksize = uint32(len(item.key)) elem.pgid = item.pgid + _assert(elem.pgid != p.id, "write: circular dependency occurred") } // Write data for the element to the end of the page. |