ingest_record: lock client, then session
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Apr 2010 08:32:49 +0000 (10:32 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Apr 2010 08:32:49 +0000 (10:32 +0200)
commit25a2a0bc6bd136a4d9ea6034e7a86c889d02e4e2
treef631a1a1f7381b8220642c4ec9866a2a26d363ca
parentce617dd90a2dc6632e7475ab73a887e0fb472c5c
ingest_record: lock client, then session

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).
src/session.c