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

Function remDocument

graphdb.js:964–978  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

962}
963
964function remDocument(self) {
965 if (!self.ready || self.states.remove || !self.pending.remove.length || F.isKilled)
966 return;
967 self.states.remove = true;
968 var doc = self.pending.remove.shift();
969 IMPORTATOPERATIONS++;
970 remRelationAll(self, doc.id, doc.id, function() {
971 remDocumentAll(self, doc.id, function(err, count) {
972 IMPORTATOPERATIONS--;
973 self.states.remove = false;
974 doc.callback && doc.callback(err, count);
975 setImmediate(self.cb_next, NEXT_REMOVE);
976 });
977 });
978}
979
980function remDocumentAll(self, index, callback, count) {
981

Callers 1

graphdb.jsFile · 0.85

Calls 2

remRelationAllFunction · 0.85
remDocumentAllFunction · 0.85

Tested by

no test coverage detected