From f368a76a7a4e54b546495af54adb24853ae21e1b Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 4 May 2016 13:57:36 +0200 Subject: Add documentation for readnode(). --- c_src/permdb.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'c_src/permdb.c') 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) { -- cgit v1.1