diff options
author | Linus Nordberg <linus@nordu.net> | 2016-05-04 13:57:36 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-05-04 13:57:36 +0200 |
commit | f368a76a7a4e54b546495af54adb24853ae21e1b (patch) | |
tree | 214b2ad6ba807f13a9e4068ac769b31e2a312650 | |
parent | eb9791ee8f47548c26d084094dfa1813171f0b95 (diff) |
Add documentation for readnode().
-rw-r--r-- | c_src/permdb.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c_src/permdb.c b/c_src/permdb.c index 08052fc..3928e1d 100644 --- a/c_src/permdb.c +++ b/c_src/permdb.c @@ -569,6 +569,15 @@ iserrornode(node_object node) && node.data[3] == NODE_ENTRY_ERROR_NODE; } +/* + * Returns node at OFFSET in the index file. + * + * If CACHEKEY is not NULL, looks for CACHEKEY in the dirtynodes list + * and the cache before reading the index file. + * + * If CACHEKEY is not NULL, the node is put in the cache under that + * key. + */ static node_object readnode(permdb_object *state, node_offset offset, const ps_string *cachekey) { |