MCPcopy Index your code
hub / github.com/totaljs/framework / updPageMeta

Function updPageMeta

graphdb.js:955–962  ·  view source on GitHub ↗
(self, index, fn)

Source from the content-addressed store, hash-verified

953}
954
955function updPageMeta(self, index, fn) {
956 var offset = offsetPage(self, index);
957 var buf = U.createBufferSize(self.header.pagesize);
958 Fs.read(self.fd, buf, 0, buf.length, offset, function() {
959 fn(null, buf);
960 Fs.write(self.fd, buf, 0, buf.length, offset, self.cb_error);
961 });
962}
963
964function remDocument(self) {
965 if (!self.ready || self.states.remove || !self.pending.remove.length || F.isKilled)

Callers 3

findDocumentFreeFunction · 0.85
pushRelationDocumentFunction · 0.85
remDocumentAllFunction · 0.85

Calls 2

offsetPageFunction · 0.85
fnFunction · 0.70

Tested by

no test coverage detected