Commit Graph

37 Commits

Author SHA1 Message Date
dwight
bc81e2ac0c compile warning on windows eliminate 2011-03-01 20:35:49 -05:00
greg
e82ae13ca0 Cannot use boost::thread::id for legacy 2011-03-01 17:02:06 -05:00
greg
737a20b8fa Fixes for distributed lock handling time skew.
In general, the current distributed lock is susceptible to time skew in config servers and mongos clients.  This update
uses an algorithm that checks for time skew, as well as providing some more robust tests to make sure a distributed
lock cannot be forced prematurely.  Some documentation on the website, currently hidden from non-10gen, gives more
info.
2011-03-01 14:15:26 -05:00
Eliot Horowitz
8d4850ae65 detect clock skew in DistributedLock SERVER-2584 2011-02-17 19:59:33 -05:00
Eliot Horowitz
cf275ec820 warning if we hit a bizarre case 2011-02-16 17:23:16 -05:00
Eliot Horowitz
5909aa6962 more verbose lock pinging logic 2011-02-14 16:21:36 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Alberto Lerner
d8b24cc6a8 add lock holder in all lock taken paths 2010-12-13 13:13:22 -05:00
Alberto Lerner
93ec2e1c10 introduced a header by mistake 2010-11-30 12:02:16 -05:00
Alberto Lerner
5ff1b64140 report if dist_lock take over failed 2010-11-30 12:00:27 -05:00
Eliot Horowitz
c7de5247bf move boost headers to pch.h 2010-11-28 02:07:25 -05:00
dwight
5ec52a8161 comments 2010-11-13 13:02:48 -05:00
Alberto Lerner
6af410dde7 SERVER-1880 do not clean lockpings, even old ones, if the lock is still taken 2010-11-11 14:35:26 -05:00
Alberto Lerner
9c7814ffcd fill lock owner in the other lock taken path 2010-10-26 15:25:26 -04:00
Alberto Lerner
70d9fb3fd2 a bit more logging 2010-10-01 16:51:09 -04:00
Alberto Lerner
e161357e63 log() if lockpings don't get through 2010-10-01 15:00:19 -04:00
Eliot Horowitz
9eb2e8c2ba better error message on distlock 2010-10-01 13:41:18 -04:00
Eliot Horowitz
61efd254b0 lower verbosity at -v 2010-09-12 17:51:38 -04:00
Alberto Lerner
48ac2df48f call_once has a fast path already 2010-08-20 19:52:39 -04:00
Alberto Lerner
c703c0bac3 Tighten process string caching 2010-08-19 12:54:28 -04:00
Alberto Lerner
d2f718eac5 Log all error exit paths. 2010-08-12 11:21:34 -04:00
Alberto Lerner
de1d87c885 Give the pinger thread a name. 2010-08-12 09:50:29 -04:00
Alberto Lerner
0bb812151e Log more dist lock details at high verbose level. 2010-08-11 16:46:37 -04:00
Alberto Lerner
fd94900d91 DistributedLock::unlock() handles partition from config DB 2010-08-05 11:52:14 -04:00
Eliot Horowitz
efd0f7459b fix type SERVER-1563 2010-08-04 09:38:55 -04:00
Eliot Horowitz
34a45ffdf0 stop pinging at shutdown 2010-07-23 23:14:03 -04:00
Eliot Horowitz
6c055169e6 fix warning 2010-07-20 23:16:33 -04:00
Dwight
d0df24eef0 signed unsigned warning 2010-07-19 10:41:48 -04:00
Alberto Lerner
daf8c0fbd0 Revert "SERVER-1270 Prep for hooking StringData"
This reverts commit b7c9a9fc57.
2010-07-17 16:07:38 -04:00
Alberto Lerner
b7c9a9fc57 SERVER-1270 Prep for hooking StringData 2010-07-17 14:33:17 -04:00
Alberto Lerner
13708352c2 More logging messages 2010-07-13 20:22:25 -04:00
Eliot Horowitz
d4df0245db conn cleaning 2010-07-13 18:21:37 -04:00
Eliot Horowitz
62737ff9c0 timeouts for distlock 2010-07-13 01:21:08 -04:00
Eliot Horowitz
1f3ff9a1c7 remove old pingers 2010-07-13 01:03:15 -04:00
Eliot Horowitz
453398b8b2 distlock pings, get rid of ourHostname 2010-07-13 00:56:08 -04:00
Dwight
19f12a3285 add distlock.cpp to vcxproj files 2010-07-12 19:07:32 -04:00
Eliot Horowitz
507ae132d0 distlock cleaning 2010-07-12 17:53:02 -04:00