Removed unlocking/lock of clients as in master.
authorDennis Schafroth <dennis@indexdata.com>
Wed, 28 Apr 2010 14:07:30 +0000 (16:07 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 28 Apr 2010 14:07:30 +0000 (16:07 +0200)
src/session.c

index ce5c635..61c26b7 100644 (file)
@@ -1164,14 +1164,10 @@ int ingest_record(struct client *cl, const char *rec,
         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;