[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jgit-dev] JGit thread safety
- From: Dimitar Georgiev <dimitar.georgiev.bg@xxxxxxxxx>
- Date: Thu, 18 Apr 2013 14:26:12 +0300
- Delivered-to: firstname.lastname@example.org
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
Dear JGit experts,
I have a question which i thought was too technical for the user forums,
hope I am not mistaken.
Are local JGit operations such as commit and add thread-safe? I am
building a homegrown content management solution and am using JGit
Command API behind the scenes. Requests to JGit can come from multiple
(HTTP) threads and I was wondering whether having no programmatic
locking around this could result in data corruption / race conditions.
Also what is the expected results when there is a simultaneous commit /
Thanks in advance for your time.