lock client, then session rather than the reverse way. This
saves us locking but more importantly prevents that session
gets destroyed under our feet (while client and session is
not locked).
xmlFreeDoc(xdoc);
return -1;
}
- client_unlock(cl);
session_enter(se);
- client_lock(cl);
if (client_get_session(cl) == se)
ret = ingest_to_cluster(cl, xdoc, root, record_no, mergekey_norm);
- client_unlock(cl);
session_leave(se);
- client_lock(cl);
xmlFreeDoc(xdoc);
return ret;